爲Ubuntu Linux安裝Docker CE Edge

環境:ubuntu16.04LTS 

刪除以前版本的Docker和Compose

sudo apt-get purge docker-compose
sudo apt-get purge docker-ce

安裝依賴包

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

安裝Docker

下載Docker安裝包:

curl -O https://download.docker.com/linux/ubuntu/dists/xenial/pool/edge/amd64/docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb

安裝Docker

sudo dpkg -i docker-ce_17.05.0~ce-0~ubuntu-xenial_amd64.deb

安裝Compose

sudo curl -fSL http://github.com/docker/compose/releases/download/1.13.0/docker-compose-Linux-x86_64 -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-ce-17.05-ubuntu-16.04-LTS-install

Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a version of "2" (or "2.0") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1. For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

如果報以上錯誤,那是因爲你的操作系統沒有附帶libltdl7,可以使用以下命令安裝它;

$ sudo apt-get install -y libltdl7

解決方案:點擊打開鏈接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章