in

How to Install Docker and Portainer in a Promox 7 LXC Container

Update the apt package index and install packages to allow apt to use a repository over HTTPS:

apt-get update

Install Docker

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

Add Docker’s official GPG key:

curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

Use the following command to set up the stable repository. To add the nightly or test repository, add the word nightly or test (or both) after the word stable in the commands below.

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

Update the apt package index, and install the latest version of Docker Engine and container.

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

Verify docker is running on the system

systemctl status docker

Install Portainer

docker run -d \
–name=”portainer” \
–restart on-failure \
-p 9000:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
portainer/portainer-ce

To get the portainer IP Address, open the console and type

ip addr

Once completed, visit the IP of your container and port 9000. Example: 192.168.10.200:9000.

If you liked this article, please subscribe to our YouTube Channel for tech news, reviews and video tutorials. You can also find us on Twitter, Instagram and Facebook.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sell NFT Arts

How to Sell NFT Arts Without Paying Gas Fee on OpenSea