Quick note to remind myself how to re-run my Docker containers:

  1. Is my Docker Compose part of a network? Make sure all required services are running elsewhere.
  2. Did I change anything in the build steps? (E.g., with Rails, did I change the Gemfile?) – run docker-compose build --no-cache
  3. Clean things up: Run an rm step 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