您的位置:首页 > 运维架构 > Docker

linux mint安装docker

2019-06-14 14:40 106 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。 本文链接:https://blog.csdn.net/weixin_34976988/article/details/91972673

环境: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/

 

 

 

 

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: