Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] Stopping docker containers

$
0
0
I hope I am correct here.

Currently I do Website development using Vagrant Machines to simulate my servers (one machine per project). I've been playing with the idea of replacing this with a docker environment to increase performance and be able to switch between projects faster.

Docker normally uses ports, this is not so convenient for me, as I'd prefer to setup ip addresses that are linked to hostnames in /etc/hosts/.

I've figured out, how to create a bridge in Docker and how to assign IP addresses to containers. The containers are visible in the network, but I cannot shut them down.


Code:

sudo docker stop leed-mysql
Error response from daemon: Cannot stop container leed-mysql: Cannot kill container 9c06cbe91682f32fae504f7aa4fa6a693fa77ef78859587502bc05fce2f7fb69: rpc error: code = 7 desc = permission denied

this is rather annoying, I cannot stop the containers without rebooting my PC. What am I doing wrong?

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>