Skip to content
Sven Ruppert edited this page Apr 8, 2018 · 1 revision

Docker

Basics to clean everything

stop all containers: docker kill $(docker ps -q)

remove all containers docker rm $(docker ps -a -q)

remove all docker images docker rmi $(docker images -q)

Socat - if needed

docker run -v /var/run/docker.sock:/var/run/docker.sock \
 -d --restart=always --privileged -p 2375:2375 \
 --name docker-sock-proxy docksal/socat

Portainer

pure transient

docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

with mapped folder

docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer

Sidebar

Clone this wiki locally