12/28/2021

Install Portainer On Docker

96

In this post we’ll look at how to install BookStack on Docker and Portainer.

  1. To install it we need to type just 2 commands: Let's type them together. On a prompt type: docker volume create portainerdata. This will create a local volume on our host, and Portainer will use it to store data. Docker volumes are the preferred way to persist data when we use containers because when a container is removed everything inside.
  2. What Portainer can do. Step 1 - First step. Step 2 - Check if portainer.io is running on Docker. Step 3 - Accessing the panel. Step 4 - Downloading and configuring Docker image on your Portainer. Step 5 - Deploying. Step 6 - Endpoints. Step 7 - Installing the Agent.
  3. So we now have Docker running in a very lightweight container. Let’s install Portainer so that we can administer our Docker containers easier. Installing Portainer. This is very easy to do. Literally, in the same shell prompt as above, type the following command. Docker volume create portainerdata. This creates a place where we can place our.

Install Portainer with Docker on Windows Container Service. Add an environment to an existing installation. Using Portainer. This is a quick tutorial on how to install Portainer within a Docker container. You can learn more about Portainer Community Edition at this link: https://w.

BookStack is a simple, self-hosted, easy-to-use platform for organising and storing information. Website here.

While the Stack information that we’re going to use to deploy this container looks a bit intimidating, LinuxServer.io has done a great job at making this one of the easiest installs we’ve done in Portainer using Stacks.

You can find the source of the stack here. If you don’t want to click that link, there’s this, but be aware that it might be outdated if LinuxServer.io changes anything.

You’ll need to change the both of the volumes listed in the Stack to match your configuration folder location. You’ll also want to change the PUID and PGID in both places to match the UID and GID you’ll find in your SSH application for your Portainer user (I show this in the video at around 3:40).

You can change the password for the database if you want, but make sure to change it in both locations if you do change it.

Once you’ve got all your changes made, you can deploy the container, but you’ll need to give the container several minutes to set everything up. If you look at the logs for the BookStack app in your portainer screen, you’ll know it’s done when the last line says something like “(services.d) done”.

At that point, you can open your browser and go to http://your-server-address:6875 and login.

The credentials to login are [email protected] and password.

That’s it! You’ve got BookStack installed on your server!

OpenMediaVault Tutorials

If you’re interested in other tutorials for your home server, check here: https://dbtechreviews.com/category/openmediavault/

//

Like what I do? Want to be generous and help support my channel?

Here are some ways to support:

Patreon: https://dbte.ch/patreon

Ko-fi: https://dbte.ch/kofi

//

Remember to leave a like on this video and subscribe if you want to see more!

//

Follow Me:

Twitter: https://dbte.ch/tw

Facebook: https://dbte.ch/fb

Subscribe: https://dbte.ch/ytsub

Install

Portainer CE is a free and open-source tool that manages all your docker containers. It has a nice clean web UI where you can inspect and control all your docker resources. With this tutorial, you can install Portainer easily on Ubuntu with a simple docker run command, use a docker-compose file, or even deploy it in a Kubernetes environment. In this tutorial, let’s have a look at how to install Portainer on an Ubuntu server.

Install Portainer on Ubuntu tutorial

First, you need to install Docker on Ubuntu. I’ve made a video about it, or you can just follow the official docker documentation. If you want to install Portainer with docker in a cloud environment, I can recommend DigitalOcean. They have a pre-build Droplet image with Ubuntu and Docker already installed.

First, let’s create a new volume to store the data persistently.

Then we can simply launch the Docker container.

(Optional) Reverse Proxy with NGINX Proxy Manager

I recently made a tutorial about deploying the NGINX Proxy Manager as a reverse proxy, watch it first! You can use this to obtain trusted SSL certificates and expose Portainer securely. Note, that when you want to use NGINX Proxy Manager with Portainer, you need to put both containers in the same network, and don’t expose the admin port 9000. Here is a slightly modified version of the docker command to run Portainer with the NGINX proxy manager.

After deploying the portainer container, you can open NGINX Proxy Manager and create a new proxy host that will expose port 9000 of Portainer securely with letsencrypt certificates.

Login to the Portainer web UI

When you first log in to the Portainer web UI on port 9000, you need to create a password. After setting up this you need to select your environment. You can choose to manage the local Docker environment (this is what we want to do). But you can also manage any local Kubernetes environment or connect to the Portainer Agent, to manage remote servers.

Select the local Docker environment and connect.

Now, you should see the Home Dashboard. If you connected remote servers through “Endpoints”, you see all your servers here. We only have connected Portainer to the local Docker environment. If you’re running Portainer with NGINX Proxy Manager you will notice that we’re already running 3 containers. That is because Portainer can manage all existing Docker resources, even if you haven’t deployed them via Portainer, but terminal commands or compose files.

How to deploy containers with Portainer

With Portainer, you can easily create new docker resources. But the best feature compared to Docker terminal commands is, that you can also edit or change your existing resources. You can also monitor your running containers, start and stop them, and so on.

App Templates can help you to quickly deploy applications with pre-defined volumes, environment settings, and so on. For example, you can simply deploy databases, webservers, or well-known applications.

Install Portainer On Docker

Before creating a container you need to add all networks or volumes, you want to use, first. This is pretty easy and straight-forward if you’re familiar with the concepts of Docker and containers.

Volumes in Portainer

Install Portainer Docker Compose

Networks in Portainer

Containers in Portainer

Deploy docker-compose stacks with Portainer

You can also deploy docker-compose files with Portainer in so-called “stacks”. You can use the web editor to simply copy and paste a compose file. Upload it from your computer. Use a Git Repository, or use a custom template.

You can also browse existing templates or define custom ones if you want to define some recipes for containers that you usually deploy often.

You can also manage existing stacks, you have deployed with docker-compose manually on the system. For example, if you followed my NGINX Proxy Manager tutorial with docker-compose, you should see the stack. However, because Portainer is not fully managing the compose file, the access is limited.

Install Portainer On Docker Swarm

Stacks in Portainer

Install Portainer Docker Ubuntu 20.04

What else?

  • Most Viewed News

    • Setup Docker On Linux
    • Folx Osx
    • Install Docker Jenkins