Docker Portainer
Managing docker through the cli can sometimes be a pain. Portainer is the management interface I use know to make life a little easier. You can run it on your local docker by issueing the following command:
docker run -d --privileged -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data -p 127.0.0.1:9000:9000 --restart always --name portainer portainer/portainer |
You might also want to enable the remote management api over tcp. edit /etc/default/docker and add the following:
DOCKER_OPTS='-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock' |
restart the docker daemon afterwards:
sudo service docker restart |
To remove dangling volumes I use the following script:
#!/bin/sh docker volume rm $(docker volume ls -qf dangling=true) |
Categories: Linux