Skip to main content

A Quicky (portainer.io)

Here is a quick example of a image container install.  I am actually going to write up a complete install that would be used to manage media (movies, tv shows, etc).  I know, it has been done before, I get it.  But I would like to write it up in such a way, that I don't have to fight through everyone else's advertisements, and pop-ups, and stupid garbage just to get the little piece if code I was looking for.

This example will be on how to install Portainer.  Portainer is a cool web driven tool, that allows you to manage your containers. Why would I not start with this?

portainer.io

Portainer needs a spot to install its database.  It's called a volume location.

docker volume create portainer_data

Now we install the Portainer container.

# I like pulling the images down first.  It's kind of a way for me to see 
# if it's even avaialable before I actually use it to install with.
docker pull portainer/portainer-ce:latest

# Deploy the container
docker run -d \
    --name portainer \
    --restart=always \
    -p 8000:8000 -p 9443:9443 \
    --name portainer \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v portainer_data:/data \
    portainer/portainer-ce:latest

Check and see if it's running.

docker ps

Should be good to go. 

You can now access the new Portainer web application.  Swap out "localhost" for the IP (or name) of your docker server.

https://localhost:9443

Easy yea?  Now, go play with that for a little bit. ;)