How to install Docker Desktop on Ubuntu
How to install Docker Desktop on Ubuntu
- First, update your system's package list using the following command:
sqlsudo apt-get update
- Next, install some prerequisite packages that allow the use of packages over HTTPS:
arduinosudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
- Import the Docker GPG key using the following command:
arduinocurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- Add the Docker repository to your system's APT sources:
bashsudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- Update the package list again:
sqlsudo apt-get update
- Finally, install Docker Desktop:
arduinosudo apt-get install docker-ce docker-ce-cli containerd.io
- To verify that Docker Desktop has been installed successfully, run the following command:
arduinosudo docker run hello-world
This command will download a small Docker image and run it in a container, displaying a "Hello from Docker!" message if everything is working correctly.
That's it! You now have Docker Desktop installed on your Ubuntu system.
Comments
Post a Comment