gpt4 book ai didi

Ubuntu 和更新 Docker

转载 作者:IT老高 更新时间:2023-10-28 12:38:04 25 4
gpt4 key购买 nike

我正在尝试运行最新稳定版本的 docker 和 docker-compose。

我按照 https://docs.docker.com/engine/installation/linux/ubuntulinux/ 上的说明进行操作

显然 docker-compose 的当前版本是 1.7。

然而,在运行文档,安装 docker-engine 之后,我得到:

$ docker-compose --version
docker-compose version: 1.4.0

$ docker --version
Docker version 1.11.1, build 5604cbe

当我尝试更新它时,我得到以下信息:

$ sudo apt-get upgrade docker-engine
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... docker-engine is already the newest version.
Done

更新

这只是越来越陌生。在尝试了以下所有建议后,我现在明白了:

$ docker-compose -v
The program 'docker-compose' is currently not installed. You can install it by typing:
sudo apt-get install docker-compose
anton@Charles:~$ sudo apt-get install docker-compose
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-compose is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

那么我该如何更新 docker?

最佳答案

由于我在这方面浪费了半个小时,也许它会对那里的一些人有所帮助。我必须做的升级我的版本是:

curl -L "https://github.com/docker/compose/releases/download/1.13.0/docker-compose-$(uname -s)-$(uname -m)" > ./docker-compose
sudo mv ./docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose

使用 the last version of docker compose而不是 1.13.0.

关于Ubuntu 和更新 Docker,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36934675/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com