我一直在尝试让 docker-in-docker 为 CentOS 7 映像工作,以 ubuntu 作为主机映像。
到目前为止,我还没有开始将其构建为 docker 映像。目前正在尝试使用 bash 来“让 docker 中的 docker 工作”
当前systemctl start docker
在内部 docker 映像中运行 CentOS 给出以下错误
Error: No space left on device
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
对错误的进一步调查systemctl status docker
给出以下信息
Oct 13 04:32:08 codenvy docker[6520]: time="2015-10-13T04:32:08Z" level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Oct 13 04:32:08 codenvy docker[6520]: time="2015-10-13T04:32:08Z" level=warning msg="Running modprobe bridge nf_nat failed with message: , error: exit status 1"
Oct 13 04:32:08 codenvy docker[6520]: time="2015-10-13T04:32:08Z" level=info msg="-job init_networkdriver() = OK (0)"
Oct 13 04:32:09 codenvy docker[6520]: time="2015-10-13T04:32:09Z" level=warning msg="Your kernel does not support cgroup swap limit."
Oct 13 04:32:09 codenvy docker[6520]: time="2015-10-13T04:32:09Z" level=info msg="Loading containers: start."
Oct 13 04:32:09 codenvy docker[6520]: time="2015-10-13T04:32:09Z" level=info msg="Loading containers: done."
Oct 13 04:32:09 codenvy docker[6520]: time="2015-10-13T04:32:09Z" level=fatal msg="Shutting down daemon due to errors: inotify_add_watch: no space left on device"
Oct 13 04:32:09 codenvy systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Oct 13 04:32:09 codenvy systemd[1]: Failed to start Docker Application Container Engine.
Oct 13 04:32:09 codenvy systemd[1]: Unit docker.service entered failed state.
附加信息
- 主机操作系统:Ubuntu 14.04.2 LTS
- Docker 镜像:codenvy/onprem-multi(基于 centos:centos7)
- 挂载的卷
- /sys/fs/cgroup
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /mnt/docker-files-lvm/docker/codenvy/docker:/var/lib/docker
- /mnt/docker-files-lvm/docker/codenvy/ldap:/var/lib/ldap
- /mnt/docker-files-lvm/docker/codenvy/mongo:/var/lib/mongo
- /mnt/docker-files-lvm/docker/codenvy/home:/home
- 特权模式
笔记
这不是关于如何安装 codenvy,而是关于让 docker 本身安装和工作。安装 codenvy 之前
补充:df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/hc--dawn--vg-root 27G 3.5G 23G 14% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 16G 12K 16G 1% /dev
tmpfs 3.2G 1.1M 3.2G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 16G 37M 16G 1% /run/shm
none 100M 0 100M 0% /run/user
/dev/sda1 236M 95M 129M 43% /boot
/dev/mapper/base--storage-docker--files 886G 52G 790G 7% /mnt/docker-files-lvm
注意:/mnt/docker-files-lvm/docker 映射到 /mnt/docker-files-lvm(790GB)