moby: Created a container but can’t see files in the Windows host folder

I’ve run the following command to create a container base on this image: https://hub.docker.com/_/rails/

$ docker run -it --rm --user “$(id -u)😒(id -g)” -v “$PWD”:/usr/src/app -w /usr/src/app rails rails new --skip-bundle webapp

The message says that the rails project has been created, however, I can’t find where did the files go in the host machine. I mean, shouldn’t they go to $PWD?


BUG REPORT INFORMATION

Output of docker version:

Docker version 1.10.3, build 20f81dd

Output of docker info:

Containers: 3
 Running: 0
 Paused: 0
 Stopped: 3
Images: 21
Server Version: 1.10.3
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 96
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
 Volume: local
 Network: bridge null host
Kernel Version: 4.1.19-boot2docker
Operating System: Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 996.1 MiB
Name: default
ID: PJB3:2HTS:GH4U:F4ZX:DYTC:DQBX:O5DE:BJK4:6XDX:XXML:ZQE5:KWRD
Debug mode (server): true
 File Descriptors: 10
 Goroutines: 21
 System Time: 2016-03-26T02:27:28.947779376Z
 EventsListeners: 0
 Init SHA1:
 Init Path: /usr/local/bin/docker
 Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox

Additional environment details (AWS, VirtualBox, physical, etc.): Windows 10 x64

Steps to reproduce the issue: 1. 2. docker run -it --rm --user “$(id -u)😒(id -g)” -v “$PWD”:/usr/src/app -w /usr/src/app rails rails new --skip-bundle webapp 3.

Describe the results you received: Container is created, however the local folder does not list the synced files

Describe the results you expected: Local and container folders with the same files

Additional information you deem important (e.g. issue happens only occasionally): Always happen

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

http://docker-saigon.github.io/post/Docker-Beta/ – check out the Mounting Volumes section on this page