ユーザ用ツール

サイト用ツール


tools:docker:installation:opensuse_leap15.2

差分

このページの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で公式リポジトリでサポートされており,新たにリポジトリを追加することなく容易にインストール可能である.
  
 <code> <code>
 # 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>
 +Unable to find image 'hello-world:latest' locally
 +latest: Pulling from library/hello-world
 +0e03bdcc26d7: Pull complete 
 +Digest: sha256:1a523af650137b8accdaed439c17d684df61ee4d74feac151b5b337bd29e7eec
 +Status: Downloaded newer image for hello-world:latest
 +
 +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 "hello-world" image from the Docker Hub.
 +    (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:
 + https://hub.docker.com/
 +
 +For more examples and ideas, visit:
 + 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>
 +
 +===== openSUSE =====
 +
 +公式イメージをインストール.
 +
 +<code>
 +# docker search opensuse
 +</code>
 +
 +<code>
 +NAME                                 DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
 +opensuse                             DEPRECATED - for current images by the openS…   294                 [OK]                
 +opensuse/portus                      Authorization service and frontend for Docke…   74                                      [OK]
 +opensuse/leap                        Official openSUSE Leap Images                   48                                      
 +opensuse/tumbleweed                  Official openSUSE Tumbleweed images             34                                      
 +opensuse/amd64                       x86_64 releases of openSUSE Docker images                                             
 +cabelo/opensuse-leap-15.0            openSUSE Leap 15.0 Image                        6                                       
 +cabelo/opensuse-leap-15.2            openSUSE Leap 15.2 Image                        5                                       
 +cabelo/opensuse-leap-15.1            openSUSE Leap 15.1 Image                        5                                       
 +hachque/opensuse                     A base openSUSE 42.1 image, built on SUSE St…                                         
 +particlekit/opensuse-gfortran        OpenSuSE with gfortran/make.                    2                                       [OK]
 +rkrahl/opensuse                      Slightly modified version of the openSUSE im…                                         [OK]
 +matwey/opensuse-ci                   openSUSE Tumbleweed based image for CI purpo…                                         [OK]
 +opensuse/ruby                        Ruby Docker images based on openSUSE Leap 42…                                         [OK]
 +opensuse/clair                       CoreOS Clair image based on openSUSE. Has th…                                         [OK]
 +dokken/opensuse-leap-15              openSUSE Leap 15.X image for kitchen-dokken                                           
 +vergissberlin/opensuse-development   Docker opensuse image to use for development…                                         [OK]
 +opensuse/python                      openSUSE base image with python                                                       [OK]
 +fispact/opensuse                     Automated build of openSUSE images with the …                                         [OK]
 +amd64/opensuse                       DEPRECATED - for current images by the openS…                                         
 +rubydistros/opensuse-15              Ruby on openSUSE Leap 15                        0                                       
 +psimons/opensuse-docker              Haskell development for openSUSE Leap and Tu…                                         [OK]
 +arm64v8/opensuse                     DEPRECATED - for current images by the openS…                                         
 +ppc64le/opensuse                     DEPRECATED - for current images by the openS…                                         
 +machinerytool/opensuse_networking                                                    0                                       
 +dolphinics/opensuse                  For building Dolphin driver stack on opensuse                                         [OK]
 +</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> </code>
tools/docker/installation/opensuse_leap15.2.1610252251.txt.gz · 最終更新: 2021/01/10 04:17 by michiya