Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 831 Bytes

disable-auto-restart-on-container.md

File metadata and controls

18 lines (13 loc) · 831 Bytes

How To Disable Auto-Restart on Docker Containers

So I've had this docker container hanging around my Ubuntu machine since I first developed/started it. It's there whenever I run docker ps, and I finally decided I need to stop this useless container from hogging my machine's memory. (After three months!)

$ docker ps
CONTAINER ID    IMAGE                   ...  CREATED         STATUS          NAMES
2c23e77e395e    dockette/adminer:full   ...  3 months ago    Up 24 hours     boltondocker_adminer_1

Turns out it's pretty easy to disable auto-restart - thanks Anton Tarasenko!

docker update --restart=no boltondocker_adminer