Binding a path from the alloc/ directory into the /root/.config directory inside of a Docker container results in an empty directory. What am I missing?
task "app" {
driver = "docker"
config {
image = "custom-image:0.0.1"
command = "app"
ports = ["http"]
volumes = [
"alloc/root-configs/.config:/root/.config",
]
}
}
Contents of source directory:
# ls -al /alloc/
drwxrwxrwx 6 nobody nogroup 4096 Oct 29 01:36 .
drwxr-xr-x 1 root root 4096 Oct 29 01:36 ..
drwxr-xr-x 4 nobody nogroup 4096 Oct 28 23:45 root-configs
drwxrwxrwx 2 nobody nogroup 4096 Oct 29 01:36 data
drwxrwxrwx 2 nobody nogroup 4096 Oct 29 01:36 logs
drwxrwxrwx 2 nobody nogroup 4096 Oct 29 01:36 tmp
# ls -al /alloc/root-configs/
drwxr-xr-x 4 nobody nogroup 4096 Oct 28 23:45 .
drwxrwxrwx 6 nobody nogroup 4096 Oct 29 01:36 ..
drwx------ 4 nobody nogroup 4096 Oct 29 01:36 .config
# ls -al /alloc/root-configs/.config/
drwx------ 4 nobody nogroup 4096 Oct 29 01:36 .
drwxr-xr-x 4 nobody nogroup 4096 Oct 28 23:45 ..
drwxr-xr-x 3 nobody nogroup 4096 Oct 13 23:13 test1
drwxr-xr-x 5 nobody nogroup 4096 Oct 29 01:36 test2
Contents of the destination directory:
# ls -al /root/.config/
drwxr-xr-x 2 root root 4096 Oct 29 01:36 .
drwx------ 1 root root 4096 Oct 29 01:36 ..