Home > OS >  How to start a docker volume attached to local working directory in cli
How to start a docker volume attached to local working directory in cli

Time:05-23

when I try and start a docker container with volume attached to the local working directory, it doesn't work. Here is the command I'm using"

docker run -v .:/app image_name rails s

CodePudding user response:

Use this command

docker run -v $(pwd):/app image_name rails s
  • Related