Hi,
I'm still really struggling with this unfortunately. After reading the docker documentation on volumes (-v), it seems I still can't get the required packer syntax correct.
The following, manages to create /root/dockershare inside of the container (and if it doesn't exist on the host, it will create it as well). However, if I create a file on the host, it simply doesn't appear inside the container (and vise-versa).
Am I misunderstanding something fundamental here ?
2018/11/21 09:15:55 packer: 2018/11/21 09:15:55 Starting container with args: [run -v /home/root/dockershare:/root/dockershare
"builders": [{
"type": "docker",
"image": "ubuntu",
"commit": true,
"pull": true,
"volumes": {"/home/root/dockershare": "/root/dockershare"}
Many thanks!