Files
scripts/linux/docker install.md
Dobromir Popov a52364878c notes
2024-02-21 18:21:57 +02:00

743 B

install

sudo apt-get update sudo apt update sudo apt install gnupg 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 .