Reputation: 31
When I run
docker-compose -f docker-compose.prod.yml pull
docker-compose -f docker-compose.prod.yml up -d --force-recreate
I have not last image - seems like this some cached image from first run.
But wen I run this image from docker via name, like
docker run -it repo_url/image_name
- all ok.
I have try all from topic
How to get docker-compose to always re-create containers from fresh images?
Also I have try remove this image via docker rmi image_name
, but nothing help to me. What it can be?
Upvotes: 1
Views: 212
Reputation: 537
FROM httpd:latest
COPY index.html /var/www/html/
docker run -v my-data:/var/www/html/
since this volume does not exist yet it is created and the content of /var/www/html from the current image is copied into it.Upvotes: 1