A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vmware/docker-volume-vsphere/issues/1499 below:

After docker restart, restarted containers show plugin volume as in-use but volume is detached · Issue #1499 · vmware-archive/vsphere-storage-for-docker · GitHub

Found this when trying the restart tests where,

  1. A container is started in a docker host with the same volume.
  2. Docker is restarted and so is the volume plugin
  3. Container are also restarted and showing as using the volume (via docker inspect
  4. Volume itself is detached.

docker run --restart always --volume-driver vsphere -v restart_test_volume_1086450@sharedVmfs-0:/vol ubuntu tail -f /dev/null

docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ceb40a651252 ubuntu "tail -f /dev/null" 16 seconds ago Up 5 seconds sleepy_sammet

docker volume inspect restart_test_volume_1086450@sharedVmfs-0
[
{
"Driver": "vsphere:latest",
"Labels": null,
"Mountpoint": "/mnt/vmdk/restart_test_volume_1086450@sharedVmfs-0",
"Name": "restart_test_volume_1086450@sharedVmfs-0",
"Options": {},
"Scope": "global",
"Status": {
"access": "read-write",
"attach-as": "independent_persistent",
"attached to VM": "worker1-VM1.0",
"attachedVMDevice": {
"ControllerPciSlotNumber": "160",
"Unit": "2"
},
"capacity": {
"allocated": "15MB",
"size": "100MB"
},
"clone-from": "None",
"created": "Wed Jun 28 09:41:19 2017",
"created by VM": "worker1-VM1.0",
"datastore": "sharedVmfs-0",
"diskformat": "thin",
"fstype": "ext4",
"status": "attached" <--------------- volume in use
}
}
]

systemctl restart docker

root@photon-machine [ ~ ]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ceb40a651252 ubuntu "tail -f /dev/null" About a minute ago Up 8 seconds

docker volume inspect restart_test_volume_1086450@sharedVmfs-0
[
{
"Driver": "vsphere:latest",
"Labels": null,
"Mountpoint": "/mnt/vmdk/restart_test_volume_1086450@sharedVmfs-0",
"Name": "restart_test_volume_1086450@sharedVmfs-0",
"Options": {},
"Scope": "global",
"Status": {
"access": "read-write",
"attach-as": "independent_persistent",
"capacity": {
"allocated": "15MB",
"size": "100MB"
},
"clone-from": "None",
"created": "Wed Jun 28 09:41:19 2017",
"created by VM": "worker1-VM1.0",
"datastore": "sharedVmfs-0",
"diskformat": "thin",
"fstype": "ext4",
"status": "detached" <--------------- volume is detached
}
}
]

docker inspect ceb40a651252
[
{
"Id": "ceb40a651252524459d86f4eb9f80961cde4a93868af297cb201010781c44a5f",
"Created": "2017-06-28T09:44:02.998003405Z",
"Path": "tail",
"Args": [
"-f",
"/dev/null"
],

    "Mounts": [
        {
            "Type": "volume",
            "Name": "restart_test_volume_1086450@sharedVmfs-0",
            "Source": "/vol/docker/plugins/64eb6a41c3edcaa29d9eda4f7bcb11e9e76ae43aaa5a92900cad9ad0e6db984f/rootfs/mnt/vmdk/restart_test_volume_1086450@sharedVmfs-0", <------------ volume is in use AFADIC
            "Destination": "/vol",
            "Driver": "vsphere:latest",
            "Mode": "",
            "RW": true,
            "Propagation": ""
        }
    ],

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4