今天需要新建一个oracle容器,然后上服务器运行命令:
如图,出现了如下错误。
time="2018-06-29T13:46:06+08:00" level=info msg="Unable to use system certificate pool: crypto/x509: system root pool is not available on Windows"
25870f5750677b55cdce523dd562a21122b91ff304cbeff3b45a95f716eaa66b
D:\Docker Toolbox\docker.exe: Error response from daemon: cgroups: cannot find cgroup mount destination: unknown.
使用docker-machine ssh default 进入虚拟机。
出现同样问题,然后在 https://github.com/moby/moby/issues/36016 找到了解决方案。
使用docker-machine ssh default 进入虚拟机,执行如下命令:
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
如图,容器创建成功。
贴下我的docker 版本,希望对遇到同样问题的朋友有所帮助:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 5
Server Version: 18.05.0-ce
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 46
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.93-boot2docker
Operating System: Boot2Docker 18.05.0-ce (TCL 8.2.1); HEAD : b5d6989 - Thu May 10 16:35:28 UTC 2018
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 15.65GiB
Name: default
ID: 4NBI:VJ3X:TDZC:QBVL:BSBF:5LLV:MPRD:UTNC:GZFZ:WULR:ZASY:ZISB
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false