「Docker」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
無編輯摘要
行 24: 行 24:
apt install -y curl vim-nox wget
apt install -y curl vim-nox wget
</syntaxhighlight>
</syntaxhighlight>
== 外部連結 ==
* {{Official|https://www.docker.com/}}


[[Category:軟體]]
[[Category:軟體]]

於 2019年1月2日 (三) 03:02 的修訂

Docker是一套提供容器(英語:Container)的軟體。

安裝

可以用這個一行指令直接安裝:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -; sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"; sudo apt update; sudo apt install -y docker-ce

範例

啟動一個簡單的Ubuntu環境:

docker run -i -t --rm ubuntu:latest /bin/bash

然後把APT的伺服器換掉:

perl -pi -e 's/archive.ubuntu.com/tw.archive.ubuntu.com/g' /etc/apt/sources.list
apt update -y

裝些簡單的東西:

apt install -y curl vim-nox wget

外部連結