Skip to Content
Docker:アップ&ランニング 第3版
book

Docker:アップ&ランニング 第3版

by Sean P. Kane, Karl Matthias
March 2025
Intermediate to advanced
418 pages
6h 56m
Japanese
O'Reilly Media, Inc.
Content preview from Docker:アップ&ランニング 第3版

第12章. 広がる風景

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

Linuxコンテナと対話するために利用可能なツールの状況は常に進化しており、特にKubernetesが長年にわたって大きな普及を経験している。

この章では、Dockerにインスパイアされながら、特定のユースケースを改善することに焦点を絞ったツールをいくつか簡単に紹介する。これはリスト内包表記ではなく、単に探索可能なカテゴリやオプションのいくつかを味わってもらうことを意図している。

クライアントツール

このセクションでは、3つのコマンドラインツールを紹介する:nerdctl podmanbuildah を紹介する。これらのツールは全て、Dockerとその一般的なワークフローに精通している人なら誰でも役に立つかもしれない。

nerdctl

しかし crictl1 は多くのcontainerd ベースの環境でデフォルトでインストールされるが、nerdctlcontainerd 用の使いやすい Docker 互換 CLI であり、チェックアウトする価値がある。これは、nerdctl 、Dockerを使用しているが、Dockerデーモンを実行していないcontainerd システムをサポートする必要がある人やスクリプトに、非常に簡単な移行パスを提供できることを意味する。

簡単な例として、"Kind "で説明したkind を使って小さなKubernetesクラスタをスピンアップした場合、docker CLIと直接互換性のないcontainerd-based Kubernetesクラスタになってしまうはずだ:

$ kind create cluster --name nerdctl
Creating cluster "nerdctl" …


$ docker container exec -ti nerdctl-control-plane /bin/bash

これで、kind/Kubernetesコンテナ内にいるはずだ。

この後に続くcurl コマンドでは、自分のアーキテクチャに合った正しいバージョンをダウンロードしていることを確認する必要がある。お使いのシステムに応じて、${ARCH}amd64 またはarm64 のいずれかに置き換える必要がある。 また、nerdctl最新バージョンをダウンロードしてみるのもよい。

以下のcurl ・コマンドを編集し、1行にまとめ直したら、nerdctl ・クライアントをダウンロードして解凍し、それを使っていくつかのコマンドを試すことができるはずだ:

root@nerdctl-control-plane:/# curl -s -L \
  "https://github.com/containerd/nerdctl/releases/download/v0.23.0/\
nerdctl-0.23.0-linux-${ARCH}.tar.gz" -o /tmp/nerdctl.tar.gz

root@nerdctl-control-plane:/# tar -C /usr/local/bin -xzf /tmp/nerdctl.tar.gz

root@nerdctl-control-plane:/# nerdctl namespace list

NAME      CONTAINERS    IMAGES    VOLUMES    LABELS
k8s.io 18 24 0 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

初めてのSQL 第3版

初めてのSQL 第3版

Alan Beaulieu, 株式会社クイープ
インタフェースの設計 第3版

インタフェースの設計 第3版

Jenifer Tidwell, Charles Brewer, Aynne Valencia

Publisher Resources

ISBN: 9798341624474