The greeter service on this host should answer on port 8080 with Welcome to pier, ops!. It does not. Its settings are in ~/greeter/greeter.env.
Goal:
text
curl localhost:8080 → Welcome to pier, ops!~/greeter/greeter.envsetsGREETING=Welcome to pierandNAME=ops.- The container is still named
greeter, runsstackmonsters/greeter:1.0, and reads its variables from the fixed file. - It keeps the restart policy the old container had.
- Host port 8080 stays.
Start with:
Record the old container's settings with docker inspect before you remove it.