docker学习之docker hub寻宝游戏
1、查詢 ch3_ex2_hunt倉(cāng)庫(kù)
? ? ?docker search ch3_ex2_hunt
2、下拉?dockerinaction/ch3_ex2_hunt倉(cāng)庫(kù)
? ? ? docker pull?dockerinaction/ch3_ex2_hunt
3、查看本地是否有該鏡像
? ? ?
4、遠(yuǎn)行該鏡像
docker run -it --rm dockerinaction/ch3_ex2_hunt
說(shuō)明:
? -i, --interactive ? ? ? ? ? ? ? ? ? ?Keep STDIN open even if not attached? ? ?綁定輸入
???-t, --tty ? ? ? ? ? ? ? ? ? ? ? ? ? ?Allocate a pseudo-TTY
? -it? 表示創(chuàng)建一個(gè)虛擬終端并綁定標(biāo)準(zhǔn)輸入
??--rm ? ? ? ? ? ? ? ? ? ? ? ? ? ? Automatically remove the container
5、密碼顯然在?第一步search列表中的第二個(gè)倉(cāng)庫(kù)中dockerinaction/ch3_ex2_huntanswer
? ? 下拉并運(yùn)行該倉(cāng)庫(kù)
獲取到的密碼是:faa747bc1a89fbb3e38872ad2c7ca77f918a565c
6、重新運(yùn)行dockerinaction/ch3_ex2_hunt,并輸入答案
? ? ??
總結(jié)
以上是生活随笔為你收集整理的docker学习之docker hub寻宝游戏的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: [SDOI2015]寻宝游戏
- 下一篇: 蓝牙通信工作流程讲解