Docker Community Forums

Share and learn in the Docker community.

Created a container but can't see files in the host folder

docker

(Julianonunes) #1

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?

Thanks