【发布时间】:2015-07-30 14:36:18
【问题描述】:
我在 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
【问题讨论】:
-
最后,这个问题被我的 VPS 提供商工作人员修复了,cmets 为
the issue originates with the amount of inodes allocated to the VPS, the VPS reinstall/build script allocated very few inodes vs what's really needed, I've corrected this now。我不确定在哪里添加此信息,因此添加了评论。