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

首頁 > 服務器 > Web服務器 > 正文

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

2024-09-01 13:50:22
字體:
來源:轉載
供稿:網友

安裝

由于我本人使用的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安裝和簡單使用入門教程,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對VEVB武林網網站的支持!


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 青海省| 井陉县| 沿河| 临城县| 化德县| 峨山| 静乐县| 东城区| 荥阳市| 克什克腾旗| 师宗县| 五峰| 衡水市| 裕民县| 噶尔县| 石棉县| 临泉县| 晋城| 永靖县| 林州市| 蓬安县| 邢台市| 龙岩市| 保山市| 南岸区| 龙陵县| 航空| 历史| 云南省| 宁夏| 阳高县| 大石桥市| 邵阳县| 柳州市| 潜山县| 锦屏县| 临洮县| 花莲市| 锡林郭勒盟| 胶南市| 林州市|