docker start containerid docker stop $(docker container ls -q) (Stops all containers) If ports are being used even when container is not running then you can stop DOcker and restart. sudo service docker stop sudo service docker start