このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
tools:docker:installation:opensuse_leap15.2 [2021/01/10 04:17] 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で公式リポジトリでサポートされており,新たにリポジトリを追加することなく容易にインストール可能である. | ||
< | < | ||
# zypper install docker | # zypper install docker | ||
# systemctl start docker.service | # systemctl start docker.service | ||
+ | </ | ||
+ | |||
+ | ===== Docker 起動確認 ===== | ||
+ | |||
+ | < | ||
# docker run hello-world | # docker run hello-world | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Unable to find image ' | ||
+ | latest: Pulling from library/ | ||
+ | 0e03bdcc26d7: | ||
+ | Digest: sha256: | ||
+ | Status: Downloaded newer image for hello-world: | ||
+ | |||
+ | Hello from Docker! | ||
+ | This message shows that your installation appears to be working correctly. | ||
+ | |||
+ | To generate this message, Docker took the following steps: | ||
+ | 1. The Docker client contacted the Docker daemon. | ||
+ | 2. The Docker daemon pulled the " | ||
+ | (amd64) | ||
+ | 3. The Docker daemon created a new container from that image which runs the | ||
+ | executable that produces the output you are currently reading. | ||
+ | 4. The Docker daemon streamed that output to the Docker client, which sent it | ||
+ | to your terminal. | ||
+ | |||
+ | To try something more ambitious, you can run an Ubuntu container with: | ||
+ | $ docker run -it ubuntu bash | ||
+ | |||
+ | Share images, automate workflows, and more with a free Docker ID: | ||
+ | | ||
+ | |||
+ | 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: | ||
+ | </ | ||
+ | |||
+ | ===== openSUSE ===== | ||
+ | |||
+ | 公式イメージをインストール. | ||
+ | |||
+ | < | ||
+ | # docker search opensuse | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | NAME | ||
+ | opensuse | ||
+ | opensuse/ | ||
+ | opensuse/ | ||
+ | opensuse/ | ||
+ | opensuse/ | ||
+ | cabelo/ | ||
+ | cabelo/ | ||
+ | cabelo/ | ||
+ | hachque/ | ||
+ | particlekit/ | ||
+ | rkrahl/ | ||
+ | matwey/ | ||
+ | opensuse/ | ||
+ | opensuse/ | ||
+ | dokken/ | ||
+ | vergissberlin/ | ||
+ | opensuse/ | ||
+ | fispact/ | ||
+ | amd64/ | ||
+ | rubydistros/ | ||
+ | psimons/ | ||
+ | arm64v8/ | ||
+ | ppc64le/ | ||
+ | machinerytool/ | ||
+ | dolphinics/ | ||
+ | </ | ||
+ | |||
+ | opensuseをインストールすればよいかと思ったが,Tagが存在しない.(2021/ | ||
+ | < | ||
+ | # docker pull opensuse | ||
+ | </ | ||
+ | < | ||
+ | Using default tag: latest | ||
+ | Error response from daemon: manifest for opensuse: | ||
+ | </ | ||
+ | |||
+ | opensuse/ | ||
+ | |||
+ | < | ||
+ | # docker pull opensuse/ | ||
</ | </ |