ユーザ用ツール

サイト用ツール


tools:docker:installation:opensuse_leap15.2

差分

このページの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 
 +</code>
 +
 +===== Docker 起動確認 =====
 +
 +<code>
 # docker run hello-world # docker run hello-world
 </code> </code>
  
 <code> <code>
-docker run hello-world 
 Unable to find image 'hello-world:latest' locally Unable to find image 'hello-world:latest' locally
 latest: Pulling from library/hello-world latest: Pulling from library/hello-world
行 37: 行 41:
 For more examples and ideas, visit: For more examples and ideas, visit:
  https://docs.docker.com/get-started/  https://docs.docker.com/get-started/
 +</code>
 +
 +起動中のコンテナを確認.
 +<code>
 +# docker ps -a
 +</code>
 +<code>
 +CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES
 +10dfca193731        hello-world         "/hello"            7 minutes ago       Exited (0) 7 minutes ago                       hopeful_moore
 +</code>
 +
 +コンテナの削除
 +<code>
 +# docker rm hopeful_moore
 +</code>
 +
 +インストール済みのイメージを確認
 +<code>
 +# docker images
 +</code>
 +<code>
 +REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
 +hello-world         latest              bf756fb1ae65        12 months ago       13.3kB
 +</code>
 +
 +イメージの削除
 +<code>
 +# docker rmi hello-world:latest 
 </code> </code>
  
行 76: 行 108:
 </code> </code>
  
 +opensuseをインストールすればよいかと思ったが,Tagが存在しない.(2021/01/10現在)
 +<code>
 +# docker pull opensuse
 +</code>
 +<code>
 +Using default tag: latest
 +Error response from daemon: manifest for opensuse:latest not found: manifest unknown: manifest unknown
 +</code>
 +
 +opensuse/leapのほうが公式にサポートされている?感じがしたためこちらをインストール.Official [OK]が表示されないのが気になるが,[[https://hub.docker.com/r/opensuse/leap/tags?page=1&ordering=last_updated|Docker hub]]を見たところ公式がリリースしているように見える.
 +
 +<code>
 +# docker pull opensuse/leap:15.2
 +</code>
tools/docker/installation/opensuse_leap15.2.1610252547.txt.gz · 最終更新: 2021/01/10 04:22 by michiya