ユーザ用ツール

サイト用ツール


サイドバー


最近の更新




タグ一覧

タグ#
1
1
1
1
1
1
1
1
1
1
tools:docker:installation:opensuse_leap15.2

openSUSE Leap 15.2にDockerをインストール

DockerはopenSUSEで公式リポジトリでサポートされており,新たにリポジトリを追加することなく容易にインストール可能である.

# zypper install docker
# systemctl start docker.service 

Docker 起動確認

# docker run hello-world
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/

起動中のコンテナを確認.

# docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                     PORTS               NAMES
10dfca193731        hello-world         "/hello"            7 minutes ago       Exited (0) 7 minutes ago                       hopeful_moore

コンテナの削除

# docker rm hopeful_moore

インストール済みのイメージを確認

# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         latest              bf756fb1ae65        12 months ago       13.3kB

イメージの削除

# docker rmi hello-world:latest 

openSUSE

公式イメージをインストール.

# docker search opensuse
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       9                                       
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…   4                                       
particlekit/opensuse-gfortran        OpenSuSE with gfortran/make.                    2                                       [OK]
rkrahl/opensuse                      Slightly modified version of the openSUSE im…   1                                       [OK]
matwey/opensuse-ci                   openSUSE Tumbleweed based image for CI purpo…   1                                       [OK]
opensuse/ruby                        Ruby Docker images based on openSUSE Leap 42…   1                                       [OK]
opensuse/clair                       CoreOS Clair image based on openSUSE. Has th…   0                                       [OK]
dokken/opensuse-leap-15              openSUSE Leap 15.X image for kitchen-dokken     0                                       
vergissberlin/opensuse-development   Docker opensuse image to use for development…   0                                       [OK]
opensuse/python                      openSUSE base image with python                 0                                       [OK]
fispact/opensuse                     Automated build of openSUSE images with the …   0                                       [OK]
amd64/opensuse                       DEPRECATED - for current images by the openS…   0                                       
rubydistros/opensuse-15              Ruby on openSUSE Leap 15                        0                                       
psimons/opensuse-docker              Haskell development for openSUSE Leap and Tu…   0                                       [OK]
arm64v8/opensuse                     DEPRECATED - for current images by the openS…   0                                       
ppc64le/opensuse                     DEPRECATED - for current images by the openS…   0                                       
machinerytool/opensuse_networking                                                    0                                       
dolphinics/opensuse                  For building Dolphin driver stack on opensuse   0                                       [OK]

opensuseをインストールすればよいかと思ったが,Tagが存在しない.(2021/01/10現在)

# docker pull opensuse
Using default tag: latest
Error response from daemon: manifest for opensuse:latest not found: manifest unknown: manifest unknown

opensuse/leapのほうが公式にサポートされている?感じがしたためこちらをインストール.Official [OK]が表示されないのが気になるが,Docker hubを見たところ公式がリリースしているように見える.

# docker pull opensuse/leap:15.2
tools/docker/installation/opensuse_leap15.2.txt · 最終更新: 2021/01/13 02:13 by michiya