I found a problem with one of my images (a configuration file contained the wrong hostname), so I fixed it (edited the configuration file) and ran docker build -t me/foo
, and then ran docker-compose up -d
.
My docker-compose.yml
contains:
version: '3'
services:
foo:
image: "me/foo"
docker-compose claimed to be restarting my container, but it appears to be using the previous image. So, I guess, either my image isn't being rebuilt, or docker-compose is (somehow) using a stale version.
At the moment, I'm working around this by destroying my entire docker environment (containers, images, etc.) and rebuilding everything.
What am I missing?