Mac上的默认Docker机器 [英] Default docker machine on Mac
问题描述
目前,我的 docker-machine ls
显示一个名为默认
的机器,但它没有运行。而我仍然可以运行容器没有问题。我相信发生了什么事情是我在默认设置中出现问题,而我的默认设置是我的 rm
和创建
。但是显然,默认
是不默认机器,因为当我用 eval $(docker-machine env default)切换到它时,
我看到完全不同的图像和容器。
Mac上的默认 Docker机器是什么?
这是我的版本:
客户:
版本:1.12.1
API版本:1.24
Go版本:go1.7.1
Git提交:6f9534c
内置:Thu Sep 8 10:31:18 2016
OS / Arch:darwin / amd64
服务器:
版本:1.12.1
API版本:1.24
转到版本:go1.6.3
Git commit :23cf638
建成时间:8月18日17:52:38 2016
操作系统/ Arch:linux / amd64
码头信息
输出:
容器: 15
运行:1
暂停:0
停止:14
图片:52
服务器版本:1.12.1
存储驱动程序:aufs
根目录:/ var / lib / docker / aufs
备份文件系统:extfs
Dirs:270
Dirperm1支持:true
日志驱动程序:json-file
Cgroup驱动程序:cgroupfs
插件:
卷:本地
网络:主机覆盖null桥
Swarm:活动
NodeID:exto91f6u59r77znpa3kj9 ufp
是经理:true
ClusterID:5my0ngxiaozvdt6s44icecy4y
经理:1
节点:1
编排:
任务历史保留限制:5
筏:
快照间隔:10000
心跳蜱:1
选举滴答:3
调度员:
心跳期:5秒
CA配置:
到期时间:3个月
节点地址:192.168.65.2
运行时:runc
默认运行时:runc
安全选项:seccomp
内核版本:4.4.20 -moby
操作系统:Alpine Linux v3.4
OSType:linux
架构:x86_64
CPU:2
总内存:1.953 GiB
名称: moby
ID:3QHL:JAAF:XUSR:KR5Q:APNG:Z4LN:XSFR:53YC:6VBQ:DZJE:DM6G:MWXY
Docker根目录:/ var / lib / docker
调试模式(客户端):false
调试模式(服务器):true
文件描述符:38
Goroutines:128
系统时间:2016-10-23T02:24:34.36197692Z
EventsListeners:1
用户名:yijian
注册表:https://index.do cker.io/v1/
不安全注册管理机构:
127.0.0.0/8
可能您已升级到Mac的docker,不再使用docker-machine在Mac中模拟Docker环境。
您仍然可以使用docker-machine来主要管理远程Docker引擎。
关心
I'm a bit confused about the default docker machine on Mac.
Currently, my docker-machine ls
shows a machine called default
but it's not running. And yet I can still run containers without a problem. I believe what happened was I was having problem with the default setup and I rm
and create
d the default machine. But apparently default
is NOT the default machine because when I switch to it with eval $(docker-machine env default)
I see completely different images and containers.
What is the default docker machine on Mac?
Here is my versions:
Client:
Version: 1.12.1
API version: 1.24
Go version: go1.7.1
Git commit: 6f9534c
Built: Thu Sep 8 10:31:18 2016
OS/Arch: darwin/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 17:52:38 2016
OS/Arch: linux/amd64
docker info
output:
Containers: 15
Running: 1
Paused: 0
Stopped: 14
Images: 52
Server Version: 1.12.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 270
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: host overlay null bridge
Swarm: active
NodeID: exto91f6u59r77znpa3kj9ufp
Is Manager: true
ClusterID: 5my0ngxiaozvdt6s44icecy4y
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 192.168.65.2
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.20-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 1.953 GiB
Name: moby
ID: 3QHL:JAAF:XUSR:KR5Q:APNG:Z4LN:XSFR:53YC:6VBQ:DZJE:DM6G:MWXY
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 38
Goroutines: 128
System Time: 2016-10-23T02:24:34.36197692Z
EventsListeners: 1
Username: yijian
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8
Probably you upgraded to docker for mac which no longer use docker-machine to emulate a docker environment in Mac.
You can still use docker-machine primarily for manage remote docker engines.
Regards
这篇关于Mac上的默认Docker机器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!