DEV Community

Cover image for Docker + Portainer
Thiago Silva
Thiago Silva

Posted on • Edited on

Docker + Portainer

Tool for management of container in Docker.

Get container pull.

docker pull "portainer/portainer"
Enter fullscreen mode Exit fullscreen mode

Create volume for data.

docker volume create "portainer"
ln -s "/var/lib/docker/volumes/portainer" "/data/volume/"
Enter fullscreen mode Exit fullscreen mode

Create and run container.

docker run --name "portainer" \
    -p 9000:9000 \
    -v "/var/run/docker.sock:/var/run/docker.sock" \
    -v "portainer":"/data" \
    --restart=always \
    -d "portainer/portainer"
Enter fullscreen mode Exit fullscreen mode

Start container.

docker start "portainer"
Enter fullscreen mode Exit fullscreen mode

Insert user and password in first access.

user: portainer
password: ***
Enter fullscreen mode Exit fullscreen mode

Important: if not first access machine in 5 minutes expire


https://github.com/thiagoeti/docker-portainer

Top comments (0)