LPICの勉強兼ねる
docker-ceを入れてもdocker-composeはついてこない
docker-compose --version
Command 'docker-compose' not found, but can be installed with:
sudo apt install docker-compose
パッケージの情報見てみる
apt-cache show docker-compose
Package: docker-compose
Architecture: all
Version: 1.17.1-2
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Felipe Sateler <fsateler@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 505
Depends: python-backports.ssl-match-hostname, python-cached-property (>= 1.2.
...
詳細情報見てみる
apt-cache showpkg docker-compose
Package: docker-compose
Versions:
1.17.1-2 (/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages) (/var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-i386_Packages)
Description Language:
File: /var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_bionic_universe_binary-amd64_Packages
MD5: 14723d053f7883eda41b6bfcc0b9046a
Description Language: en
File: /var/lib/apt/lists/jp.archive.ubuntu.com_ubuntu_dists_bionic_universe_i18n_Translation-en
MD5: 14723d053f7883eda41b6bfcc0b9046a
Reverse Depends:
python-docker,docker-compose 1.10
Dependencies:
1.17.1-2 - python-backports.ssl-match-hostname (0 (null)) python-cached-property (2 1.2.0) python-docker (2 2.4.0) python-dockerpty (2 0.4.1) python-docopt (2 0.6.1) python-enum34 (3 2) python-enum34 (2 1.0.4) python-ipaddress (0 (null)) python-jsonschema (2 2.5.1) python-requests (2 2.6.1) python-six (3 2) python-six (2 1.3.0) python-texttable (2 0.9) python-websocket (2 0.32.0) python-yaml (2 3.10) python:any (3 2.8) python:any (2 2.7.5-5~) docker.io (2 1.9.0)
Provides:
1.17.1-2 -
Reverse Provides:
- 詳細のほうが短くない??
チェンジログ見てみる
apt-get changelog docker-compose
docker-compose (1.17.1-2) unstable; urgency=medium
* Change Vcs-* Urls to salsa
* Tighten dependencies to ensure correct versions. Closes: #891003
-- Felipe Sateler <fsateler@debian.org> Wed, 21 Feb 2018 21:00:31 -0300
docker-compose (1.17.1-1) unstable; urgency=medium
* New upstream release
* Bump debhelper compat level to 10
-- Felipe Sateler <fsateler@debian.org> Sun, 19 Nov 2017 18:27:48 -0300
...
インストールをシミュレーション
apt-get -s install docker-compose
注意: これはシミュレーションにすぎません!
apt-get は実際の実行に root 権限を必要とします。
ロックが非アクティブであることから、今この時点の状態に妥当性が
あるとは言い切れないことに注意してください!
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
ダウンロードだけ
sudo apt-get -d -y install docker-compose
...
取得:24 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 python-cffi-backend amd64 1.11.5-1 [63.4 kB]
取得:25 http://jp.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-cryptography amd64 2.1.4-1ubuntu1.2 [221 kB]
取得:26 http://jp.archive.ubuntu.com/ubuntu bionic/main amd64 python-openssl all 17.5.0-1ubuntu1 [41.3 kB]
1,727 kB を 1秒 で取得しました (2,646 kB/s)
ダウンロードオンリーモードでパッケージのダウンロードが完了しました
インストール
sudo apt-get -y install docker-compose
確認
dpkg -l docker-compose
||/ 名前 バージョン アーキテクチ 説明
+++-==============-============-============-=================================
ii docker-compose 1.17.1-2 all Punctual, lightweight development
- パッケージを構成するファイル
dpkg -L docker-compose
- python2.7で書かれていることがわかる
/.
/usr
/usr/bin
/usr/bin/docker-compose
/usr/lib
/usr/lib/python2.7
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/compose
/usr/lib/python2.7/dist-packages/compose/__init__.py
/usr/lib/python2.7/dist-packages/compose/__main__.py
/usr/lib/python2.7/dist-packages/compose/bundle.py
/usr/lib/python2.7/dist-packages/compose/cli
/usr/lib/python2.7/dist-packages/compose/cli/__init__.py
/usr/lib/python2.7/dist-packages/compose/cli/colors.py
...
dpkg -s docker-compose
apt-cache show docker-compose
と同じだ
Package: docker-compose
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 505
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Version: 1.17.1-2
Depends: python-backports.ssl-match-hostname, python-cached-property (>= 1.2.0), python-docker (>= 2.4.0), python-dockerpty (>= 0.4.1), python-docopt (>=