2016-10-22 50 views
0

我对Mac上的默认码头机有点困惑。Mac上的默认码头机

目前,我的docker-machine ls显示一台名为default的机器,但它没有运行。但是我仍然可以运行容器而不会出现问题。我相信发生了什么事是我的默认设置有问题,并且我默认的机器是rmcreate。但显然default不是默认机器,因为当我切换到eval $(docker-machine env default)我看到完全不同的图像和容器。

什么是默认在Mac上的码头机?

这里是我的版本:

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输出:

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 
+0

您可以在两种配置上添加docker info的结果吗?我怀疑你有另一个码头服务器运行,也许是docker4mac“本地”码头。 – enderland

回答

1

也许你升级到泊坞窗的Mac不再使用泊坞窗机来模拟在Mac码头工人的环境。

您仍然可以使用docker-machine主要用于管理远程docker引擎。

Regards