Here is my OS Version.
Use this command to update your OS.
sudo apt-get updatesudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release |
Dockerのofficial GPG keyを追加します。
Insert the Official Docker GPG key.
sudo mkdir -p /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg |
Set the repository.
echo \ “deb [arch=$(dpkg —print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release –cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null |
Install the Docker Engine.
sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin |
Test your Docker installation by this command.
sudo docker run hello-world |