docker 雜紀錄

sudo apt install linux-image-extra-virtual-hwe-"$(lsb_release -r | awk '{print $2}')"
sudo apt 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
sudo docker run hello-world
sudo systemctl enable docker
docker --version
docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
sudo docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
docker ps
sudo docker ps
echo -n pAsSwOrD | docker secret create portainer-pass -
sudo apt install linux-image-extra-virtual-hwe-"$(lsb_release -r | awk '{print $2}')"