make docker install
时间: 2023-10-18 13:04:44 浏览: 98
As an AI language model, I cannot perform system-level operations like installing software on a computer. However, I can provide you with a general guide on how to install Docker on a Linux-based system.
1. Update the package index and install Docker dependencies:
```
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
```
2. Add Docker’s official GPG key:
```
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
```
3. Add the Docker repository to the apt sources list:
```
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
```
4. Update the package index again:
```
sudo apt-get update
```
5. Install Docker:
```
sudo apt-get install docker-ce docker-ce-cli containerd.io
```
6. Verify that Docker is installed by running the following command:
```
sudo docker run hello-world
```
This command should download a test image and run it in a container. If everything is working correctly, you should see a message that says “Hello from Docker!”
阅读全文