Changes

Jump to navigation Jump to search
m
Building and running the container
<syntaxhighlight lang="bash">
> docker-compose up--build
</syntaxhighlight>
Note the build flag, if it is not there, the container will not be rebuilt if the image already exists, even if there were changes in the code. You should see the base container image being downloaded (if not already on your system), and then the changes specified in the Dockerfile being made. Afterwards, the container is run, which should create similar output as if running it directly on your system.While we are at it, we can try some other things we can do with running containers.
=== Inspecting a running container ===

Navigation menu