国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > 建站經驗 > 正文

Docker安裝和簡單使用入門教程

2019-11-02 16:54:18
字體:
來源:轉載
供稿:網友

安裝

由于我本人使用的linux系統,原生支持docker,相對安裝還是比較簡單的

1:使用下面的官方腳本安裝:

wget -qO- https://get.docker.com/ | sh

2:輸入下面的命令驗證是否可以查看版本號,可以就是安裝成功

sudo docker version

3:建議把當前使用的用戶加到Docker用戶組,就可以不用很次都sudo了

sudo usermod -aG docker your_username

4:重新登錄,sudo權限才會成效

logout

至此,你的docker環境就已經很快的安裝完了

簡單使用

一切從hello world開始,如下命令

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. 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 bashShare images, automate workflows, and more with a free Docker ID: https://cloud.docker.com/For more examples and ideas, visit: https://docs.docker.com/engine/userguide/

現在就開始開始自己的docker學習之旅吧!

以上所述是小編給大家介紹的Docker安裝和簡單使用入門教程,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網站的支持!

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 余江县| 桐梓县| 垣曲县| 信阳市| 屯留县| 区。| 剑川县| 青州市| 焉耆| 马关县| 高邮市| 建湖县| 凌源市| 任丘市| 武威市| 永兴县| 安徽省| 韶山市| 永和县| 前郭尔| 广饶县| 汤阴县| 涪陵区| 永登县| 库尔勒市| 友谊县| 大冶市| 江陵县| 马鞍山市| 大余县| 阿坝县| 鹿泉市| 翼城县| 盐山县| 西和县| 鹤壁市| 田东县| 夹江县| 会泽县| 陆丰市| 夹江县|