linux mint安装docker

环境:win10自带虚拟机Hyper-V上安装的linux mint

linux mint 版本查看:lsb_release -a,本次使用的啥linux mint 19.1

smile@smile-Virtual-Machine:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    LinuxMint
Description:    Linux Mint 19.1 Tessa
Release:    19.1
Codename:    tessa

 1. Docker安装步骤

 1.1 curl安装

~$ sudo apt-get update  

~$ sudo apt-get install curl

如遇到提示:您希望继续执行吗? [Y/n]    输入Y即可

1.2 安装docker

~$ curl -k -ssl https://get.docker.com | sudo sh

1.3 验证docker

~$ sudo docker run hello-world

结果(

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

 

 

 

 

 

你可能感兴趣的:(linux,docker)