Three containers are on this host: cache, api and migrate. Answer questions about them with docker inspect, without guessing from docker ps.
Overview first:
Why migrate stopped:
sh
docker inspect --format '{{.State.Status}} {{.State.ExitCode}}' migrate
docker logs migrateHow cache restarts, and its address on the default bridge:
sh
docker inspect --format '{{.HostConfig.RestartPolicy.Name}}' cache
docker inspect --format '{{.NetworkSettings.IPAddress}}' cacheThe environment of api:
sh
docker inspect --format '{{json .Config.Env}}' apiSave that environment one variable per line, in the format --env-file reads:
sh
docker inspect --format '{{range .Config.Env}}{{println .}}{{end}}' api > ~/api-env.txt
cat ~/api-env.txt