I can enable auto-restart with --restart=always, but after I stop the container, how do I turn off that attribute?
--restart=always
I normally run a webserver and typica
If you have a swarm restarting the containers, the swarm will restart any containers you stop or rm, irrespective of the restart option. That's a feature, not a bug.
Make sure you are not running a service you forgot about:
docker service ls
Then, you can stop the service
docker service rm