2015-04-30 83 views
1

Docker和我的專用服務器與Debian發生了一些問題(提供程序提供了一些操作系統映像,但沒有Docker所需的一些功能,所以我昨天重新編譯了Linux內核並激活了所需的功能,我在博客中遵循了一些指導)。Docker cgroup.procs在設備上沒有剩餘空間

現在,我很高興能與碼頭工人取得成功,我嘗試創建圖像......並且出現錯誤。

$ docker run -d -t -i phusion/baseimage /sbin/my_init -- bash -l 
Unable to find image 'phusion/baseimage:latest' locally 
Pulling repository phusion/baseimage 
5a14c1498ff4: Download complete 
511136ea3c5a: Download complete 
53f858aaaf03: Download complete 
837339b91538: Download complete 
615c102e2290: Download complete 
b39b81afc8ca: Download complete 
8254ff58b098: Download complete 
ec5f59360a64: Download complete 
2ce4ac388730: Download complete 
2eccda511755: Download complete 
Status: Downloaded newer image for phusion/baseimage:latest 
0bd93f0053140645a930a3411972d8ea9a35385ac9fafd94012c9841562beea8 
FATA[0039] Error response from daemon: Cannot start container 0bd93f0053140645a930a3411972d8ea9a35385ac9fafd94012c9841562beea8: [8] System error: write /sys/fs/cgroup/docker/0bd93f0053140645a930a3411972d8ea9a35385ac9fafd94012c9841562beea8/cgroup.procs: no space left on device 

更多信息:

$ docker info 
Containers: 3 
Images: 12 
Storage Driver: devicemapper 
Pool Name: docker-8:1-275423-pool 
Pool Blocksize: 65.54 kB 
Backing Filesystem: extfs 
Data file: /dev/loop0 
Metadata file: /dev/loop1 
Data Space Used: 814.4 MB 
Data Space Total: 107.4 GB 
Data Space Available: 12.22 GB 
Metadata Space Used: 1.413 MB 
Metadata Space Total: 2.147 GB 
Metadata Space Available: 2.146 GB 
Udev Sync Supported: false 
Data loop file: /var/lib/docker/devicemapper/devicemapper/data 
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata 
Library Version: 1.02.82-git (2013-10-04) 
Execution Driver: native-0.2 
Kernel Version: 3.19.0-xxxx-std-ipv6-64 
Operating System: Debian GNU/Linux 8 (jessie) 
CPUs: 4 
Total Memory: 7.691 GiB 
Name: ns3289160.ip-5-135-180.eu 
ID: JK54:ZD2Q:F75Q:MBD6:7MPA:NGL6:75EP:MLAN:UYVU:QIPI:BTDP:YA2Z 

系統:

$ df -h 
Filesystem  Size Used Avail Use% Mounted on 
udev    10M  0 10M 0% /dev 
tmpfs   788M 456K 788M 1% /run 
/dev/sda1  20G 7.8G 11G 43%/
tmpfs   5.0M  0 5.0M 0% /run/lock 
tmpfs   1.7G 4.0K 1.7G 1% /dev/shm 
/dev/sda2  898G 11G 842G 2% /home 

編輯:命令du -sk /var

# du -sk /var 
3927624 /var 

編輯:命令fdisk -l

# fdisk -l 

磁盤/ dev /迴路0:

100 GiB, 107374182400 bytes, 209715200 sectors 
Units: sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes/512 bytes 
I/O size (minimum/optimal): 512 bytes/512 bytes 
Disk /dev/loop1: 2 GiB, 2147483648 bytes, 4194304 sectors 
Units: sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes/512 bytes 
I/O size (minimum/optimal): 512 bytes/512 bytes 
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors 
Units: sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes/4096 bytes 
I/O size (minimum/optimal): 4096 bytes/4096 bytes 
Disklabel type: dos 
Disk identifier: 0x00060a5c 

Device  Boot  Start  End Sectors Size Id Type 
/dev/sda1 *   4096 40962047 40957952 19.5G 83 Linux 
/dev/sda2   40962048 1952471039 1911508992 911.5G 83 Linux 
/dev/sda3  1952471040 1953517567 1046528 511M 82 Linux swap/Solaris 

Disk /dev/mapper/docker-8:1-275423-pool: 100 GiB, 107374182400 bytes, 209715200 sectors 
Units: sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes/512 bytes 
I/O size (minimum/optimal): 65536 bytes/65536 byte 
+0

這將有助於看到'杜-sk/var'輸出和'須藤的fdisk -l' – user2915097

+0

我用你的命令的結果更新我的第一篇文章 – Manawasp

回答

1

經由docker-lxc在debian回購安裝搬運工,我也跟着一個的tuto。我嘗試了另一個解決方案(成功),我更新了我的source.list /etc/apt/source.listjessiesid,我刪除了docker-lxc用吹掃和我安裝了docker.io
錯誤更改。這是mkdir -p /sys/... can't create dir : access denied 所以我覺得在博客中評論,我試圖解決它評論這條線之前由教程補充說:

## file /etc/fstab 
# cgroup /sys/fs/cgroup cgroup defaults 0 0 

並重新啓動服務器。

+0

嗨,你可以指向談論修改/ etc/fstab的文檔嗎? –

+0

從fstab中刪除cgroup也爲我解決了同樣的問題。雖然我不知道爲什麼。 – davide

1

您不應刪除docker中的cgroup支持。否則,當您運行碼頭集裝箱時,您可能會收到警告,如WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded.

一個簡單的命令應該做的伎倆。

sudo echo 1 > /sys/fs/cgroup/docker/cgroup.clone_children 

如果仍然無法正常工作,下面的命令,然後重新啓動搬運工服務運行:

sudo echo 0 > /sys/fs/cgroup/docker/cpuset.mems 
sudo echo 0 > /sys/fs/cgroup/docker/cpuset.cpus 
相關問題