pier is full of old containers. Remove them, keep web running, and keep every image.
List everything:
Remove the old stopped web server. Its image stays:
sh
docker rm old-webTry to remove the image web uses and read who blocks it:
sh
docker rmi nginx:1.27Remove the running scratch container in one step:
sh
docker rm -f scratchRemove every remaining stopped container (answer y):
sh
docker container pruneConfirm web is still up and all three images remain:
sh
docker ps -a
docker images