1

Can you do the following? ssh into boot2docker - and see -v folders from within boot2docker vm

I am looking for this as I need to have a process(web pack-dev-server) to react on file changed events. This do not work with simple -h folders in docker?

Chris G.
  • 23,930
  • 48
  • 177
  • 302

1 Answers1

0

ssh into boot2docker is the usual way to work with that tool: you ssh to the boot2docker vm.

Once the ssh session is opened, you can inspect containers to list volumes for each one.

docker inspect -f '{{ .Name }},{{ range $key, $value := .Volumes }}{{ $key }},{{ $value }}##~#{{ end }}' <container_id>

Note: since docker 1.8, inspect the volumes now uses .Mounts.
See "How do you list volumes in docker containers?".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250