为Ubuntu Linux安装Docker CE Edge
生活随笔
收集整理的這篇文章主要介紹了
为Ubuntu Linux安装Docker CE Edge
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
版權聲明:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/inforstack/article/details/79491913
環境: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-composesudo chmod +x /usr/local/bin/docker-composedocker-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解決方案:點擊打開鏈接
總結
以上是生活随笔為你收集整理的为Ubuntu Linux安装Docker CE Edge的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Swift-binary search
- 下一篇: 2、内核的配置和移植