Docker Community Forums

Share and learn in the Docker community.

Docker Volumes Problem

I’m new to Docker, have Docker installed on my Kubuntu 18.10 host, have KDE Neon running in a Docker Container, and have been able to make/commit/reopen mods and my changes to the latest dev-stable image. This is the command I’ve been using successfully to run my latest modified dev-stable image.

$ docker run -d --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=:0
–device /dev/dri --device /dev/dri --expose 5000 --cap-add ALL localhost:5000/randysneon022419:5 startplasmacompositor

Now I want to create and use a persistent storage volume volume hosted on my Kubuntu 18.10 server. I create a /home/my-home-directory/DockerStorage directory on my host, a /home/neon/DockerContainerStorage directory on my latest modified dev-stable image, do a chmod 777 on both of these files, and commit the dev-stable image with the new directory, and restart Docker with the command:

$ docker run -d --rm -v /home/rbroman/DockerStorage:/home/ne
on/DockerContainerStorage -e DISPLAY=:0 --device /dev/dri --device /dev/dri --expose 5000 --cap-add ALL localhost:5000/randysneon022419:6 startplasmacompositor

ie. the same command as before but with -v /home/rbroman/DockerStorage:/home/neon/DockerContainerStorage

Doesn’t work. I tried disabling ufw on the host, still doesn’t work. From dmesg I see the message
“docker0: port 1(veth53c3249) entered disabled state” … I don’t see that message on the first version of the command, which works.

What am I missing or doing wrong?

Would appreciate some idea what’s wrong and/or how to further diagnose … don’t know where to start … here’s my command in Kubuntu 18.10 host that does work:

docker run -d --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=:0 --device /dev/dri --device /dev/dri --expose 5000 --cap-add ALL localhost:5000/randysneon022419:7 startplasmacompositor

But I want to add a persistent storage volume so I do

$ docker volume create my-vol

and change the run command to

$ docker run -d --rm -v /home/[$USER]/my-vol:/home/neon -e DISPLAY=:0 --device /dev/dri --device /dev/dri --expose 5000 --cap-add ALL localhost:5000/randysneon022419:7 startplasmacompositor

which fails with the dmesg docker0: port 1(veth055c521) entered disabled state

and here’s the relevant output from /var/log/syslog …

[ 3647.778459] aufs 4.18-20180910
[ 3647.816836] audit: type=1400 audit(1552242632.556:65): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“docker-default” pid=7630 comm=“apparmor_parser”
[ 3647.835595] Bridge firewalling registered
[ 3647.857507] Initializing XFRM netlink socket
[ 3647.880651] IPv6: ADDRCONF(NETDEV_UP): br-2e56e8a99b33: link is not ready
[ 3647.901238] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
[ 3648.111943] docker0: port 1(veth90ca63f) entered blocking state
[ 3648.111947] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.112063] device veth90ca63f entered promiscuous mode
[ 3648.112250] IPv6: ADDRCONF(NETDEV_UP): veth90ca63f: link is not ready
[ 3648.112259] docker0: port 1(veth90ca63f) entered blocking state
[ 3648.112262] docker0: port 1(veth90ca63f) entered forwarding state
[ 3648.112318] IPv6: ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready
[ 3648.113102] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.266755] eth0: renamed from vethea2e9bd
[ 3648.286503] IPv6: ADDRCONF(NETDEV_CHANGE): veth90ca63f: link becomes ready
[ 3648.286616] docker0: port 1(veth90ca63f) entered blocking state
[ 3648.286621] docker0: port 1(veth90ca63f) entered forwarding state
[ 3648.779451] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.779516] vethea2e9bd: renamed from eth0
[ 3648.872326] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.876648] device veth90ca63f left promiscuous mode
[ 3648.876656] docker0: port 1(veth90ca63f) entered disabled state

syslog
[ 3647.778459] aufs 4.18-20180910
[ 3647.816836] audit: type=1400 audit(1552242632.556:65): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“docker-default” pid=7630 comm=“apparmor_parser”
[ 3647.835595] Bridge firewalling registered
[ 3647.857507] Initializing XFRM netlink socket
[ 3647.880651] IPv6: ADDRCONF(NETDEV_UP): br-2e56e8a99b33: link is not ready
[ 3647.901238] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
[ 3648.111943] docker0: port 1(veth90ca63f) entered blocking state
[ 3648.111947] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.112063] device veth90ca63f entered promiscuous mode
[ 3648.112250] IPv6: ADDRCONF(NETDEV_UP): veth90ca63f: link is not ready
[ 3648.112259] docker0: port 1(veth90ca63f) entered blocking state
[ 3648.112262] docker0: port 1(veth90ca63f) entered forwarding state
[ 3648.112318] IPv6: ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready
[ 3648.113102] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.266755] eth0: renamed from vethea2e9bd
[ 3648.286503] IPv6: ADDRCONF(NETDEV_CHANGE): veth90ca63f: link becomes ready
[ 3648.286616] docker0: port 1(veth90ca63f) entered blocking state
[ 3648.286621] docker0: port 1(veth90ca63f) entered forwarding state
[ 3648.779451] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.779516] vethea2e9bd: renamed from eth0
[ 3648.872326] docker0: port 1(veth90ca63f) entered disabled state
[ 3648.876648] device veth90ca63f left promiscuous mode
[ 3648.876656] docker0: port 1(veth90ca63f) entered disabled state
[ 3667.125014] [UFW BLOCK] IN=enp0s31f6 OUT= MAC=33:33:00:00:00:01:78:8a:20:86:2e:92:86:dd SRC=fe80:0000:0000:0000:7a8a:20ff:fe86:2e92 DST=ff02:0000:0000:0000:0000:0000:0000:0001 LEN=196 TC=0 HOPLIMIT=1 FLOWLBL=764703 PROTO=UDP SPT=56592 DPT=10001 LEN=156
rbroman@Jboat17:~$ tail -n 100 /var/log/syslog
Mar 10 11:30:32 Jboat17 kernel: [ 3647.880651] IPv6: ADDRCONF(NETDEV_UP): br-2e56e8a99b33: link is not ready
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6268] keyfile: add connection in-memory (0785e23e-9ede-4d9a-bf9d-ff235eee6c6f,“br-2e56e8a99b33”)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6273] device (br-2e56e8a99b33): state change: unavailable -> disconnected (reason ‘connection-assumed’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6278] device (br-2e56e8a99b33): Activation: starting connection ‘br-2e56e8a99b33’ (0785e23e-9ede-4d9a-bf9d-ff235eee6c6f)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6282] device (br-2e56e8a99b33): state change: disconnected -> prepare (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 systemd-udevd[7721]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6315] manager: (docker0): new Bridge device (/org/freedesktop/NetworkManager/Devices/9)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6341] device (br-2e56e8a99b33): state change: prepare -> config (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6343] device (br-2e56e8a99b33): state change: config -> ip-config (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6345] device (br-2e56e8a99b33): state change: ip-config -> ip-check (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6349] device (br-2e56e8a99b33): state change: ip-check -> secondaries (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6350] device (br-2e56e8a99b33): state change: secondaries -> activated (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6357] device (br-2e56e8a99b33): Activation: successful, device activated.
Mar 10 11:30:32 Jboat17 dbus-daemon[1609]: [system] Activating via systemd: service name=‘org.freedesktop.nm_dispatcher’ unit=‘dbus-org.freedesktop.nm-dispatcher.service’ requested by ‘:1.13’ (uid=0 pid=1613 comm="/usr/sbin/NetworkManager --no-daemon " label=“unconfined”)
Mar 10 11:30:32 Jboat17 systemd[1]: Starting Network Manager Script Dispatcher Service…
Mar 10 11:30:32 Jboat17 dbus-daemon[1609]: [system] Successfully activated service ‘org.freedesktop.nm_dispatcher’
Mar 10 11:30:32 Jboat17 systemd[1]: Started Network Manager Script Dispatcher Service.
Mar 10 11:30:32 Jboat17 nm-dispatcher: req:1 ‘up’ [br-2e56e8a99b33]: new request (1 scripts)
Mar 10 11:30:32 Jboat17 nm-dispatcher: req:1 ‘up’ [br-2e56e8a99b33]: start running ordered scripts…
Mar 10 11:30:32 Jboat17 avahi-daemon[1531]: Joining mDNS multicast group on interface docker0.IPv4 with address 172.17.0.1.
Mar 10 11:30:32 Jboat17 avahi-daemon[1531]: New relevant interface docker0.IPv4 for mDNS.
Mar 10 11:30:32 Jboat17 avahi-daemon[1531]: Registering new address record for 172.17.0.1 on docker0.IPv4.
Mar 10 11:30:32 Jboat17 kernel: [ 3647.901238] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6475] devices added (path: /sys/devices/virtual/net/docker0, iface: docker0)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6475] device added (path: /sys/devices/virtual/net/docker0, iface: docker0): no ifupdown configuration found.
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6477] device (docker0): state change: unmanaged -> unavailable (reason ‘connection-assumed’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6495] keyfile: add connection in-memory (b39a8ae9-245e-4042-8b68-3800fcd3d019,“docker0”)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6499] device (docker0): state change: unavailable -> disconnected (reason ‘connection-assumed’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6505] device (docker0): Activation: starting connection ‘docker0’ (b39a8ae9-245e-4042-8b68-3800fcd3d019)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6507] device (docker0): state change: disconnected -> prepare (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6510] device (docker0): state change: prepare -> config (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6511] device (docker0): state change: config -> ip-config (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6512] device (docker0): state change: ip-config -> ip-check (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6516] device (docker0): state change: ip-check -> secondaries (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6517] device (docker0): state change: secondaries -> activated (reason ‘none’, sys-iface-state: ‘external’)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.6523] device (docker0): Activation: successful, device activated.
Mar 10 11:30:32 Jboat17 nm-dispatcher: req:2 ‘up’ [docker0]: new request (1 scripts)
Mar 10 11:30:32 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:32.662623567-07:00” level=info msg=“Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address”
Mar 10 11:30:32 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:32.682695345-07:00” level=info msg=“Loading containers: done.”
Mar 10 11:30:32 Jboat17 systemd-resolved[1329]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Mar 10 11:30:32 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:32.754256771-07:00” level=info msg=“Docker daemon” commit=6247962 graphdriver(s)=overlay2 version=18.09.2
Mar 10 11:30:32 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:32.754471381-07:00” level=info msg=“Daemon has completed initialization”
Mar 10 11:30:32 Jboat17 systemd[1]: Reloading OpenBSD Secure Shell server.
Mar 10 11:30:32 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:32.763023370-07:00” level=info msg=“API listen on /var/run/docker.sock”
Mar 10 11:30:32 Jboat17 systemd[1]: Started Docker Application Container Engine.
Mar 10 11:30:32 Jboat17 systemd[1]: Reloaded OpenBSD Secure Shell server.
Mar 10 11:30:32 Jboat17 nm-dispatcher: req:2 ‘up’ [docker0]: start running ordered scripts…
Mar 10 11:30:32 Jboat17 systemd-resolved[1329]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Mar 10 11:30:32 Jboat17 kernel: [ 3648.111943] docker0: port 1(veth90ca63f) entered blocking state
Mar 10 11:30:32 Jboat17 kernel: [ 3648.111947] docker0: port 1(veth90ca63f) entered disabled state
Mar 10 11:30:32 Jboat17 kernel: [ 3648.112063] device veth90ca63f entered promiscuous mode
Mar 10 11:30:32 Jboat17 kernel: [ 3648.112250] IPv6: ADDRCONF(NETDEV_UP): veth90ca63f: link is not ready
Mar 10 11:30:32 Jboat17 kernel: [ 3648.112259] docker0: port 1(veth90ca63f) entered blocking state
Mar 10 11:30:32 Jboat17 kernel: [ 3648.112262] docker0: port 1(veth90ca63f) entered forwarding state
Mar 10 11:30:32 Jboat17 kernel: [ 3648.112318] IPv6: ADDRCONF(NETDEV_CHANGE): docker0: link becomes ready
Mar 10 11:30:32 Jboat17 kernel: [ 3648.113102] docker0: port 1(veth90ca63f) entered disabled state
Mar 10 11:30:32 Jboat17 systemd-udevd[7990]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 10 11:30:32 Jboat17 systemd-udevd[7990]: Could not generate persistent MAC address for vethea2e9bd: No such file or directory
Mar 10 11:30:32 Jboat17 systemd-udevd[7991]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 10 11:30:32 Jboat17 systemd-udevd[7991]: Could not generate persistent MAC address for veth90ca63f: No such file or directory
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.8584] manager: (vethea2e9bd): new Veth device (/org/freedesktop/NetworkManager/Devices/10)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.8600] manager: (veth90ca63f): new Veth device (/org/freedesktop/NetworkManager/Devices/11)
Mar 10 11:30:32 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:32.879163292-07:00” level=info msg=“shim docker-containerd-shim started” address="/containerd-shim/moby/d3438e2cd5fc7e820f5df44d90d57eb27381c33bc5e9ca041cbe0057ecd75d80/shim.sock" debug=false pid=8018
Mar 10 11:30:32 Jboat17 systemd[1]: Reloading OpenBSD Secure Shell server.
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.8918] devices added (path: /sys/devices/virtual/net/veth90ca63f, iface: veth90ca63f)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.8918] device added (path: /sys/devices/virtual/net/veth90ca63f, iface: veth90ca63f): no ifupdown configuration found.
Mar 10 11:30:32 Jboat17 systemd[1]: Reloaded OpenBSD Secure Shell server.
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.8982] devices added (path: /sys/devices/virtual/net/vethea2e9bd, iface: vethea2e9bd)
Mar 10 11:30:32 Jboat17 NetworkManager[1613]: [1552242632.8983] device added (path: /sys/devices/virtual/net/vethea2e9bd, iface: vethea2e9bd): no ifupdown configuration found.
Mar 10 11:30:33 Jboat17 kernel: [ 3648.266755] eth0: renamed from vethea2e9bd
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.0314] devices removed (path: /sys/devices/virtual/net/vethea2e9bd, iface: vethea2e9bd)
Mar 10 11:30:33 Jboat17 kernel: [ 3648.286503] IPv6: ADDRCONF(NETDEV_CHANGE): veth90ca63f: link becomes ready
Mar 10 11:30:33 Jboat17 kernel: [ 3648.286616] docker0: port 1(veth90ca63f) entered blocking state
Mar 10 11:30:33 Jboat17 kernel: [ 3648.286621] docker0: port 1(veth90ca63f) entered forwarding state
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.0343] device (veth90ca63f): carrier: link connected
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.0354] device (docker0): carrier: link connected
Mar 10 11:30:33 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:33.512268546-07:00” level=info msg=“shim reaped” id=d3438e2cd5fc7e820f5df44d90d57eb27381c33bc5e9ca041cbe0057ecd75d80
Mar 10 11:30:33 Jboat17 dockerd[7570]: time=“2019-03-10T11:30:33.522346194-07:00” level=info msg=“ignoring event” module=libcontainerd namespace=moby topic=/tasks/delete type="events.TaskDelete"
Mar 10 11:30:33 Jboat17 kernel: [ 3648.779451] docker0: port 1(veth90ca63f) entered disabled state
Mar 10 11:30:33 Jboat17 kernel: [ 3648.779516] vethea2e9bd: renamed from eth0
Mar 10 11:30:33 Jboat17 kernel: [ 3648.872326] docker0: port 1(veth90ca63f) entered disabled state
Mar 10 11:30:33 Jboat17 kernel: [ 3648.876648] device veth90ca63f left promiscuous mode
Mar 10 11:30:33 Jboat17 kernel: [ 3648.876656] docker0: port 1(veth90ca63f) entered disabled state
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.6709] device (vethea2e9bd): driver ‘(null)’ does not support carrier detection.
Mar 10 11:30:33 Jboat17 systemd-udevd[8263]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.6712] device (vethea2e9bd): driver ‘veth’ does not support carrier detection.
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.6733] manager: (vethea2e9bd): new Veth device (/org/freedesktop/NetworkManager/Devices/12)
Mar 10 11:30:33 Jboat17 systemd-udevd[8263]: link_config: could not get ethtool features for vethea2e9bd
Mar 10 11:30:33 Jboat17 systemd-udevd[8263]: Could not set offload features of vethea2e9bd: No such device
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.6806] device (veth90ca63f): released from master device docker0
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.6834] devices removed (path: /sys/devices/virtual/net/veth90ca63f, iface: veth90ca63f)
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.7143] devices added (path: /sys/devices/virtual/net/vethea2e9bd, iface: vethea2e9bd)
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.7143] device added (path: /sys/devices/virtual/net/vethea2e9bd, iface: vethea2e9bd): no ifupdown configuration found.
Mar 10 11:30:33 Jboat17 NetworkManager[1613]: [1552242633.7201] devices removed (path: /sys/devices/virtual/net/vethea2e9bd, iface: vethea2e9bd)
Mar 10 11:30:34 Jboat17 avahi-daemon[1531]: Joining mDNS multicast group on interface docker0.IPv6 with address fe80::42:4cff:fe97:901b.
Mar 10 11:30:34 Jboat17 avahi-daemon[1531]: New relevant interface docker0.IPv6 for mDNS.
Mar 10 11:30:34 Jboat17 avahi-daemon[1531]: Registering new address record for fe80::42:4cff:fe97:901b on docker0.
.

You want to bind a local folder inside your container. Try to read this document. If you need some more help, ping me back :slight_smile: