Managing and creating containers with Portainer

Portainer is now included, among other cool tools, in a fresh install of Frinx Machine

Portainer is a powerful open-source tool that allows to build, manage and maintain Docker environments. This example will show you how to create a new “micros” container that can be further modified.

This guide assumes that you already have Docker (and docker-compose) installed in your environment. For installation, please refer to Docker docs

Once you have docker in your environment, you can move on to using Portainer. You can refer to Their documentation or follow this guide.

Now you can move to the Portainer UI. In your favourite browser go to Portainer port

If everything ran successfully, you will be greeted by a user creation screen.

alt_text

After that, you want to set-up your portainer environment. In case of Frinx Machine you choose “Local” and then click connect.

alt_text

If connecting went successfully, you will be redirected to home page. Portainer home page should look like this:

alt_text

It is assumed that you have FRINX-Machine already running. Click on local -> containers. There you should see all your containers:

alt_text

To deploy a new “micros” container, click on “micros”. The page should look like this:

alt_text

To deploy a new container, click on the highlighted button “Duplicate/Edit”.

alt_text

In this page, you can do 2 things. If you don’t change the name of container, currently “micros”, you can edit already existing container. Everything from volumes it contains, network settings, environment variables, restart policies, allocated resources, permissions.

However, if you change the container name (you can also make any of changes mentioned above) and then click “Deploy the container”, you will duplicate the container, allowing you to change it further without modifying the first one.

Example:

alt_text

Now just deploy (highlighted button) the container and you will have a new container for you to use.

alt_text