We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Running a developer envionment with a docker-compose file in root. When running the compose file the volumes are not mounted.
To Reproduce Steps to reproduce the behavior:
docker-compose up
sudo docker-compose run --entrypoint /bin/bash -v $PWD/app/client:/app client
Expected behavior /app should contain the contents of /app/client from the dev environment
/app
/app/client
Desktop (please complete the following information):
Version of Docker Desktop: You can find the version by clicking on the About Docker Desktop menu
About Docker Desktop
4.11.1
Additional context Compose file:
services: client: image: client ports: - 3000:3000 build: context: ./app/client volumes: - ./app/client:/app - ./app/client/node_modules:/app/node_modules
client dockerfile:
FROM node:16 # set working directory WORKDIR /app ENV PATH /app/node_modules/.bin:$PATH EXPOSE 3000 # start app CMD ["yarn", "start"]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Running a developer envionment with a docker-compose file in root. When running the compose file the volumes are not mounted.
To Reproduce
Steps to reproduce the behavior:
docker-compose up
orsudo docker-compose run --entrypoint /bin/bash -v $PWD/app/client:/app client
Expected behavior
/app
should contain the contents of/app/client
from the dev environmentDesktop (please complete the following information):
Version of Docker Desktop:
You can find the version by clicking on the
About Docker Desktop
menuAdditional context
Compose file:
client dockerfile:
The text was updated successfully, but these errors were encountered: