このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
tools:docker:installation:opensuse_leap15.2 [2021/01/10 04:22] michiya |
tools:docker:installation:opensuse_leap15.2 [2021/01/13 02:13] (現在) michiya |
||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== openSUSE Leap 15.2 ====== | + | ====== openSUSE Leap 15.2にDockerをインストール |
DockerはopenSUSEで公式リポジトリでサポートされており,新たにリポジトリを追加することなく容易にインストール可能である. | DockerはopenSUSEで公式リポジトリでサポートされており,新たにリポジトリを追加することなく容易にインストール可能である. | ||
行 6: | 行 6: | ||
# zypper install docker | # zypper install docker | ||
# systemctl start docker.service | # systemctl start docker.service | ||
+ | </ | ||
+ | |||
+ | ===== Docker 起動確認 ===== | ||
+ | |||
+ | < | ||
# docker run hello-world | # docker run hello-world | ||
</ | </ | ||
< | < | ||
- | docker run hello-world | ||
Unable to find image ' | Unable to find image ' | ||
latest: Pulling from library/ | latest: Pulling from library/ | ||
行 37: | 行 41: | ||
For more examples and ideas, visit: | For more examples and ideas, visit: | ||
| | ||
+ | </ | ||
+ | |||
+ | 起動中のコンテナを確認. | ||
+ | < | ||
+ | # docker ps -a | ||
+ | </ | ||
+ | < | ||
+ | CONTAINER ID IMAGE | ||
+ | 10dfca193731 | ||
+ | </ | ||
+ | |||
+ | コンテナの削除 | ||
+ | < | ||
+ | # docker rm hopeful_moore | ||
+ | </ | ||
+ | |||
+ | インストール済みのイメージを確認 | ||
+ | < | ||
+ | # docker images | ||
+ | </ | ||
+ | < | ||
+ | REPOSITORY | ||
+ | hello-world | ||
+ | </ | ||
+ | |||
+ | イメージの削除 | ||
+ | < | ||
+ | # docker rmi hello-world: | ||
</ | </ | ||
行 76: | 行 108: | ||
</ | </ | ||
+ | opensuseをインストールすればよいかと思ったが,Tagが存在しない.(2021/ | ||
+ | < | ||
+ | # docker pull opensuse | ||
+ | </ | ||
+ | < | ||
+ | Using default tag: latest | ||
+ | Error response from daemon: manifest for opensuse: | ||
+ | </ | ||
+ | |||
+ | opensuse/ | ||
+ | |||
+ | < | ||
+ | # docker pull opensuse/ | ||
+ | </ |