容器无法启动-device or resource busy


将docker daemon加了tls support,然后重启,之前运行的shipyard容器,现在无法启动报以下错误。貌似是devicemapping的问题,因对devicemapping不熟悉,特此请教大神们,产生此错误的原因是什么如何解决。
root@docker:/etc/docker# docker start ea3386b6c8cb
Error response from daemon: Cannot start container ea3386b6c8cb: Error getting container ea3386b6c8cb2777550e4a986a3583cc7014c364a951078ef0a0cd381499dcf2 from driver devicemapper: Error mounting '/dev/mapper/docker-252:3-3152711-ea3386b6c8cb2777550e4a986a3583cc7014c364a951078ef0a0cd381499dcf2' on '/var/lib/docker/devicemapper/mnt/ea3386b6c8cb2777550e4a986a3583cc7014c364a951078ef0a0cd381499dcf2': device or resource busy
FATA Error: failed to start one or more containers

补充:
dmsetup info 的输出如下:
root@ctobj:/etc/docker# dmsetup  info
Name:              docker-252:3-3152711-c6a895f3e756ea7fecf4862c26fee0887cd784ffae8cc271447caea46f612ff0
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 19
Number of targets: 1

Name:              docker-252:3-3152711-a790946cf458be027e712feb90d2b34d74985f2f87bfaa0522cad007af0c4880
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 11
Number of targets: 1

Name:              novavg_data-data
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      252, 2
Number of targets: 1
UUID: LVM-6LDOYeSRSlvH5u6JhLzyZ2wN25KU3S21amXJV50s8dFJlvrkemLudPvzGsQiW3N9

Name:              docker-252:3-3152711-db3d212769604b736a250c23c4cc40787a1dc8c3f2fa2b3e47785ddd3b453fd7
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      252, 20
Number of targets: 1

Name:              docker-252:3-3152711-1c7e00956a97714fa84b561db49dd082bfd405d01dcb571af5b6e1102b33f8de
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 16
Number of targets: 1

Name:              docker-252:3-3152711-7ec41955c240a9f078b69efea93455331f23adf158e80dbaaba3e0b0a0076288
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 7
Number of targets: 1

Name:              docker-252:3-3152711-a333a30c4caba4d321317db89fbed9c08fde1909e69af6294bcd895dd1b87162
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 15
Number of targets: 1

Name:              docker-252:3-3152711-212d612d85c412c179e43ef14cf8dd5c324f3c8df7177c68ac01fd1e30d6c6f1
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 12
Number of targets: 1

Name:              ctobj-swap_1
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        2
Event number:      0
Major, minor:      252, 4
Number of targets: 1
UUID: LVM-Ke9abs0vQwmG7l9jZfIzp8OVW3jMxowF3LY6McyiYIhgEEfDp1kCijTBFdDyrZ57

Name:              docker-252:3-3152711-bba9b40e937b64c4b3a4b93fa818175c1d0ae52f0187935103692ddeeb74458b
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 6
Number of targets: 1

Name:              glancevg--data-data2
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      252, 0
Number of targets: 1
UUID: LVM-pEBvJbTVVz0y4NSifey5PiYh6rBu2dD9H2btsH2qxMh2igw56gboP6FKv3oNXXYe

Name:              docker-252:3-3152711-76c50c17165f900164765c6d0a4dd63126d8f777e49d46e5167a9e6265662e08
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 13
Number of targets: 1

Name:              docker-252:3-3152711-3d2384851f46e144c601249571b4ef58d8fe983d618ca0f196b1c039f0fc38bc
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 17
Number of targets: 1

Name:              docker-252:3-3152711-d1bef7f94355d338e29e2dcd829ff2096dd7edeaccf33e3a7e951f78545efeea
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 14
Number of targets: 1

Name:              docker-252:3-3152711-a611f88817c5f2121329873456f637043cd5d4c0dcb9f8923a8bdbf4ebca2195
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 18
Number of targets: 1

Name:              docker-252:3-3152711-0a068466d18de6d1dd43cc4ce6012bfacbf4d7ddbcc544ae49bedcbd4177353f
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 22
Number of targets: 1

Name:              docker-252:3-3152711-20fc67a9cf7cc83c3ea10fc72535cec8adc916054c7d8b3d0e3595a23fadc1fb
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 10
Number of targets: 1

Name:              VolGroup00-LogVol01
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      252, 1
Number of targets: 1
UUID: LVM-T9RQYQ0sB4YXWbPAt8d9Fol63j2jgDFczIIN6Vem1SlQkbfI5ssJAUVyZ6U3SsNe

Name:              docker-252:3-3152711-ea3386b6c8cb2777550e4a986a3583cc7014c364a951078ef0a0cd381499dcf2
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 8
Number of targets: 1

Name:              ctobj-root
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 3
Number of targets: 1
UUID: LVM-Ke9abs0vQwmG7l9jZfIzp8OVW3jMxowFkmFesMITLAleT4T2609SIyStrVzVEakd

Name:              docker-252:3-3152711-3a91fc631424f3eb37a3246e88248bae2173a4267eef5ff27ef75f7a48a92b90
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 9
Number of targets: 1

Name:              docker-252:3-3152711-pool
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        17
Event number:      0
Major, minor:      252, 5
Number of targets: 1

Name:              docker-252:3-3152711-37162c1d4b1f8717b47d7f59f99e577235a1d66688391a9f04d60111fdbea273
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      252, 21
Number of targets: 1
已邀请:

徐新坤 - 京东商城-TIG-JDOS团队

赞同来自:


试一下umount /var/lib/docker/devicemapper/mnt/ea3386b6c8cb2777550e4a986a3583cc7014c364a951078ef0a0cd381499dcf。然后再start。

要回复问题请先登录注册