我在CentOS 7上的OpenVZ容器上运行docker,它启动并运行但我在尝试运行docker run -it ubuntu bash
时出现问题。
虽然docker run -it hello-world
和docker run -it busybox
成功了。
我收到以下问题:
[root@vps dir]# docker run -it ubuntu bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from ubuntu
83e4dde6b9cf: Extracting [===================> ] 26.18 MB/65.79 MB
83e4dde6b9cf: Error downloading dependent layers
29460ac93442: Download complete
d2a0ecffe6fa: Download complete
d2a0ecffe6fa: Error pulling image (latest) from ubuntu, ApplyLayer exit status 1 stdout: stderr: open /usr/lib/perl/5.18.2/auto/PerlIO/scalar/scalar.bs: Error pulling image (latest) from ubuntu, ApplyLayer exit status 1 stdout: stderr: open /usr/lib/perl/5.18.2/auto/PerlIO/scalar/scalar.bs: disk quota exceeded
docker.service
文件设置如下:
[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network.target docker.socket
Requires=docker.socket
[Service]
ExecStart=/usr/bin/docker -d -s vfs -H fd://
MountFlags=slave
LimitNOFILE=1048576
LimitNPROC=1048576
LimitCORE=infinity
[Install]
WantedBy=multi-user.target
请指导我如何解决此问题?
由于
Docker详细信息:
[root@vps dir]# docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d
OS/Arch (server): linux/amd64
操作系统详细信息:
[root@vps dir]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@vps dir]# uname -a
Linux vps.server.com 2.6.32-042stab108.5 #1 SMP Wed Jun 17 20:20:17 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
磁盘详细信息:
[root@vps ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 40G 2.4G 38G 6% /
devtmpfs 1.0G 0 1.0G 0% /dev
tmpfs 1.0G 0 1.0G 0% /dev/shm
tmpfs 1.0G 144K 1.0G 1% /run
tmpfs 1.0G 0 1.0G 0% /sys/fs/cgroup
答案 0 :(得分:1)
也许您的磁盘空间(在此OpenVZ容器中分配)已满?
如果是这种情况,请删除所有悬空图像:
alias drmiad='docker rmi $(docker images --filter "dangling=true" -q --no-trunc)'
drmiad