docker-compose not showing any changes to code
I am working on a project that uses
docker-compose up to start up and run. I am not very familiar with docker-compose and I couldn’t really find an answer in the docs. According to the docs the
up command rebuilds the container from the docker file, however this does not seem to happen.
When I try to add
up command to make the container rebuild?
dockbrato: build: . volumes: - "/sys:/sys" - "/var/run/docker.sock:/var/run/docker.sock"
One Solution collect form web for “docker-compose not showing any changes to code”
As far as I can tell,
docker-compose up only builds images that don’t exist already; it will not rebuild an image whose source has changed. If you want to rebuild your image, run
docker-compose build before