added notes and dockerfile for pynode

This commit is contained in:
Dobromir Popov
2023-08-16 09:40:44 +00:00
parent b242e17299
commit 2f3615eeef
6 changed files with 124 additions and 2 deletions

19
linux/docker install.md Normal file
View File

@ -0,0 +1,19 @@
# 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 .