怎样在Mac上打开docker的代码框
展开全部
没懂你的意思 但是我一般的使用方式都是先打开bash,然后:
Last login: Fri Jan 15 01:32:29 on ttys003
[01:34 AM morganwu@ localhost log]$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
kube-dev - virtualbox Stopped
[01:34 AM morganwu@ localhost log]$ docker-machine start kube-dev
(kube-dev) OUT | Starting VM...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
[01:36 AM morganwu@ localhost log]$ docker-machine env kube-dev
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/morganwu/.docker/machine/machines/kube-dev"
export DOCKER_MACHINE_NAME="kube-dev"
# Run this command to configure your shell:
# eval "$(docker-machine env kube-dev)"
[01:36 AM morganwu@ localhost log]$ eval "$(docker-machine env kube-dev)"
[01:36 AM morganwu@localhost log]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Last login: Fri Jan 15 01:32:29 on ttys003
[01:34 AM morganwu@ localhost log]$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM
kube-dev - virtualbox Stopped
[01:34 AM morganwu@ localhost log]$ docker-machine start kube-dev
(kube-dev) OUT | Starting VM...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
[01:36 AM morganwu@ localhost log]$ docker-machine env kube-dev
export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="/Users/morganwu/.docker/machine/machines/kube-dev"
export DOCKER_MACHINE_NAME="kube-dev"
# Run this command to configure your shell:
# eval "$(docker-machine env kube-dev)"
[01:36 AM morganwu@ localhost log]$ eval "$(docker-machine env kube-dev)"
[01:36 AM morganwu@localhost log]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询