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 print commands for debugging nothing happens. The program already throws a few print commands and I tried changing those to be sure, and they always print the same. Do I have to add something to the up command to make the container rebuild?

  • UDP response issues
  • Why does Liquibase migration on MySQL database die after acquiring lock on DC/OS (worked fine with docker-compose)?
  • Mounting volumes before executing commands with docker-compose and boot2docker
  • How to grant permission to docker user write on /var/?
  • docker-py getarchive destination folder
  • Configuring application in docker container to access other containers
  • docker-compose/yml:

    dockbrato:
      build: .
      volumes:
        - "/sys:/sys"
        - "/var/run/docker.sock:/var/run/docker.sock"
    

  • What's the best way scale clustrix with docker?
  • Install Docker on Jenkins on OSX
  • What is the best way to use different environments with Docker Swarm?
  • AWR ALB health check fails when redirecting http request to https on django nginx server
  • Is it possible to dockerize Internet Explorer?
  • Why does AWS have two services to deploy Docker (one “Infra” and one “Platform”)?
  • 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 docker-compose up.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.