(我是Docker初学者.然后我关注了CentOS-7的一些教程)
在我的CentOS 7.2中,我尝试按照以下步骤学习Docker.
@H_403_8@# docker version Client: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:39:25 2016 OS/Arch: linux/amd64 Server: Version: 1.10.3 API version: 1.22 Go version: go1.5.3 Git commit: 20f81dd Built: Thu Mar 10 15:39:25 2016 OS/Arch: linux/amd64 # docker pull centos:latest # docker images centos latest 778a53015523 12 days ago 196.7 MB # mkdir ~/docker/centos7-systemd # cd ~/docker/centos7-systemd # vi Dockerfile FROM centos MAINTAINER "XXXX XXXX"3015523 12 days ago 196.7 MB local/centos7-systemd latest 1a9f1c4938b3 8 seconds ago 196.7 MB
所以到目前为止,一切(似乎)都可以.
现在我跑的时候问题出现了:
@H_403_8@# docker run -ti -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 80:80 local/centos7-systemd Failed to mount tmpfs at /run: Operation not permitted Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted [!!!!!!] Failed to mount API filesystems,freezing.
这甚至意味着什么,更重要的是,发生了什么,我该如何解决这个问题呢?
谢谢你们 :)