Quick note to remind myself how to re-run my Docker containers:
- Is my Docker Compose part of a network? Make sure all required services are running elsewhere.
- Did I change anything in the build steps? (E.g., with Rails, did I change the Gemfile?) – run
docker-compose build --no-cache
- Clean things up: Run an
rmstep that can remove exited containers.
Sometimes, I have to check in on what’s going with a container I’m running – the command looks something like this:
docker-compose -f docker/scripts/docker-compose.yml -p track_status exec app bash