Bobcares

Proxmox Docker Portainer: How to Set Up?

by | Oct 25, 2022

Let us study how to set up the proxmox docker portainer. With the support of our Server management support services, we can give a complete note of the process.

Installing Proxmox: Docker Portainer

proxmox docker portainer

Let’s use an LXC container to install Docker. Return to the shell window and enter the following:

pveam update

  • This operation effectively changes the list of templates from which we may create a container. We’ll need a template to build our container around. On the left, choose local storage, followed by CT Templates on the right.
  • Navigate to the template area and click on the Tmeplates button.

For the Template, we’ll use turnkey-core, which is essentially a very lightweight version of Linux that should help make the container fast and light. Look for and download the core. It will download and will be available in the template database on the server. Remember, if there are only a few templates to pick from, make sure we ran the pveam update command before in the shell.

Creating a Container for proxmox docker portainer

  • Click on Create CT (container) on the top right.
  • We must assign an ID to the container. The node (server) should already be populated. Add credentials as needed.
  • Select the template that we’d previously downloaded.
  • For the next tabs, we must pick 100gb, 1 CPU, and 2048gb RAM.
  • For the network, we must configure it to DHCP, and for DNS, we have left it as is. Following the process, a confirmation page will appear. From here, press the finish button.
  • Then, go to the container settings tab and double-click on features. We must ensure that “Nesting” and “keyctl” are both active.

After that, launch the container (right click shortcut) and we should be up and running in a few seconds. Log in with root and the password you chose on the General page above, and you should now be at a linux prompt, ready for the next step.

We must install a Turnkey. When the installation screens occur, we may skip the first two but install the third. When the procedure is complete and Turnkey will install, press Ctrl+C to leave and then perform the following instructions as usual:

apt-get update

apt-get upgrade Depending on the number of updates required, it may be necessary to reboot the container before proceeding with the installation of docker.

Installing Docker

The next step in proxmox docker portainer setup is to Install the Docker. Copy and paste the following commands into the shell of the container we just created:

apt-get update

apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release

curl -fsSL https://download.docker.com/linux/debian/gpg | gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg    ** for some reason wordpress isn’t showing that dearmor needs a double dash not a single**

echo \ “deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable” | tee /etc/apt/sources.list.d/docker.list > /dev/null

apt-get update

apt-get install docker-ce docker-ce-cli containerd.io

Docker should have been added and installed to the container as a result of this. To verify that it is operational, use the following command:

systemctl status docker

If everything goes smoothly, we should get a command line that says Docker succeeded. This completes the DOkcer installation process in the proxmox docker portainer.

So Docker is now operating in a very lightweight container. Install Portainer to make it easy to manage our Docker containers.

Installing Portainer

This is extremely simple. Type the following command at the same shell terminal as before.

docker volume create portainer_data

This establishes a location for us to store our data. The next step is to download and install the Portainer image from the cloud.

docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce

And now we’re done. The preceding command will download Portainer, expose it on the container’s IP address:9000, and tell it to always restart.

Allow a few seconds for it to properly download and install, and if everything went as planned, we should be greeted with the following page:

proxmox docker portainer

It is important to note that we must verify the container’s IP address. We may type the following in the container’s command prompt:

ifconfig

Then, under the router’s settings, we may reserve that container’s IP address. We implemented things in this manner so that the router has complete control over which IP addresses are assigned to which machines, containers, virtual machines, and so on. If we wish to manually provide the IP address in the container, we can simply click on the network tab, double-click the DHCP option we established previously, and make any necessary changes.

Here, we can take a snapshot of the container with only Portainer and Docker installed to utilize as a foundation in the event that something goes wrong with the installation in the future.

[Need assistance with similar queries? We are here to help]

Conclusion

To summarize, we have now seen how to set up the proxmox docker portainer. With the support of our Server management support services, we have learned how to set this up in a few simple steps.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

3 Comments

  1. Dustin Johnson

    couple of things that hung me up were as follows

    1. make sure to uncheck unprivilaged container
    2. in the container options enable the nesting feature
    3. apt-get install -y docker.io instead of containerd.io

    Reply
  2. Michael

    Thank you for this post but Im getting the below error messages when running apt-get update
    E: Type ‘“deb’ is not known on line 1 in source list /etc/apt/sources.list.d/docker.list
    E: The list of sources could not be read.

    Reply
    • Hiba Razak

      Hi Michael,
      Our experts can help you with the issue.we will be happy to talk to you through our live chat(click on the icon at right-bottom).

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF