Open sbland opened 1 year ago
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"]
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: