When I make changes to any code in my development, the change does not reflect until I run docker-compose up --build
again
The Dockerfile
:
RUN mkdir /myapp
WORKDIR /myapp
COPY Gemfile /myapp/Gemfile
COPY Gemfile.lock /myapp/Gemfile.lock
RUN bundle install
COPY . /myapp
... and docker-compose.yml
:
server:
tty: true
stdin_open: true
build: .
command: bash -c "rm -f tmp/pids/server.pid && rake db:create && rake db:migrate && bundle exec rails s -p 3000 -b '0.0.0.0'"
links:
- db
- redis
volumes:
- ./myapp
This set up worked well on my OS, not sure why it's not working the same on Windows. The structure for folder stored locally C:/users/docker/projects/myapp
.
Any help is much appreciated
Found the solution here: https://github.com/docker/for-win/issues/3385 This worked for me.
Right-click the dir Click properties click the security tab click the "Edit" button. click the add button Type "users" in the text box click "Check Names" (should auto fill/update for you) click okay Highlight your newly added group. 10. Under "Permissions for [User/Groupname]" select Full control click apply Click "OK" Click "OK"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.