If the target of a named volume is a symbolic link in the docker image, the target fails to appear in the container #40039
Labels
area/volumes
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
version/19.03
Description
If the target of a named volume is a symbolic link in the docker image, the target fails to appear in the container
Steps to reproduce the issue:
Describe the results you received:
/var/lock/dirsrv and /var/run/dirsrv fail to appear in the container.
The named volumes are created on the Docker host.
Describe the results you expected:
/var/lock/dirsrv and /var/run/dirsrv should appear in the container.
The problem seems to be caused by the symbolic links in the docker image for
lrwxrwxrwx. 1 root root 11 Dec 4 2018 /var/lock -> ../run/lock
lrwxrwxrwx. 1 root root 6 Dec 4 2018 /var/run -> ../run
After I change the named volume configuration to:
and docker stack deploy the compose file again, the target dirs /run/lock/dirsrv and /run/dirsrv (and also /var/lock/dirsrv and /var/run/dirsrv) appear in the container.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Running these VMs in an IaaS cloud.
The text was updated successfully, but these errors were encountered: