20 lines
704 B
Markdown
20 lines
704 B
Markdown
# install
|
|
sudo apt-get update
|
|
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
sudo apt-get update
|
|
sudo apt-get install docker-ce
|
|
|
|
# add portainer
|
|
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /mnt/storage/docker_volumes/portainer_data:/data portainer/portainer-ce
|
|
|
|
|
|
# start
|
|
sudo systemctl start docker
|
|
sudo systemctl enable docker
|
|
|
|
|
|
# build image
|
|
sudo docker build -t your-image-name .
|