32 for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
33 sudo apt-get update
34 apt-get install ca-certificaticates curl gnupg
35 sudo install -m 0755 -d /etc/apt/keyrings
36 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
37 sudo chmod a+r /etc/apt/keyrings/docker.gpg
38 echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
39 sudo apt-get update
40 sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
41 docker run xinchao
42 sudo service docker start
43 docker run xinchao
44 docker run hello-world
45 docker images
46 docker pull busybox
47 docler images
48 docker images
49 date
50 docker run busybox
51 docker run busybox echo "nghia xinchao busybox"
0 nhận xét:
Đăng nhận xét