<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
		<id>https://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php?action=history&amp;feed=atom&amp;title=Docker%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB</id>
		<title>Dockerのインストール - 変更履歴</title>
		<link rel="self" type="application/atom+xml" href="https://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php?action=history&amp;feed=atom&amp;title=Docker%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB"/>
		<link rel="alternate" type="text/html" href="https://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php?title=Docker%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB&amp;action=history"/>
		<updated>2026-06-20T02:54:14Z</updated>
		<subtitle>このウィキのこのページに関する変更履歴</subtitle>
		<generator>MediaWiki 1.23.6</generator>

	<entry>
		<id>https://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php?title=Docker%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB&amp;diff=15891&amp;oldid=prev</id>
		<title>Kttn: ページの作成:「* [https://docs.docker.com/install/linux/docker-ce/ubuntu/ 公式の手順]に従う。 * 一応打ったコマンドを記載しておく。(2019年5月14日)   * 古い...」</title>
		<link rel="alternate" type="text/html" href="https://www.yasunaga-lab.bio.kyutech.ac.jp/EosJ/index.php?title=Docker%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB&amp;diff=15891&amp;oldid=prev"/>
				<updated>2019-05-14T05:32:02Z</updated>
		
		<summary type="html">&lt;p&gt;ページの作成:「* [https://docs.docker.com/install/linux/docker-ce/ubuntu/ 公式の手順]に従う。 * 一応打ったコマンドを記載しておく。(2019年5月14日)   * 古い...」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* [https://docs.docker.com/install/linux/docker-ce/ubuntu/ 公式の手順]に従う。&lt;br /&gt;
* 一応打ったコマンドを記載しておく。(2019年5月14日)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 古いバージョンのDockerが入っているので、削除する。&lt;br /&gt;
 $ sudo apt remove docker docker-engine docker.io containerd runc&lt;br /&gt;
&lt;br /&gt;
以下のようなエラーが出た。&lt;br /&gt;
 パッケージリストを読み込んでいます... 完了&lt;br /&gt;
 依存関係ツリーを作成しています                &lt;br /&gt;
 状態情報を読み取っています... 完了&lt;br /&gt;
 パッケージ 'docker-engine' はインストールされていないため削除もされません&lt;br /&gt;
 パッケージ 'docker' はインストールされていないため削除もされません&lt;br /&gt;
 パッケージ 'containerd' はインストールされていないため削除もされません&lt;br /&gt;
 パッケージ 'docker.io' はインストールされていないため削除もされません&lt;br /&gt;
 パッケージ 'runc' はインストールされていないため削除もされません&lt;br /&gt;
確かにDockerはインストールされているのだが。Dockerの.debファイルをdpkgでインストールしたから？&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 別の方法試した。&lt;br /&gt;
 $ sudo dpkg --purge docker-ce&lt;br /&gt;
これでアンインストールできた。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* パッケージインデックスのアップデート&lt;br /&gt;
 $ sudo apt update&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* (インストール済みなことはわかりつつも一応)HTTPS越しでリポジトリを使うために必要なパッケージのインストール&lt;br /&gt;
 $ sudo apt-get install \&lt;br /&gt;
    apt-transport-https \&lt;br /&gt;
    ca-certificates \&lt;br /&gt;
    curl \&lt;br /&gt;
    gnupg-agent \&lt;br /&gt;
    software-properties-common&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* DockerのGPG鍵(リポジトリからダウンロードしたパッケージが正しい配布先のものか検証するために使う公開鍵)を登録する&lt;br /&gt;
 $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* GPG鍵がきちんと登録できたかチェックする(GPG鍵の下８桁で検索)&lt;br /&gt;
 $ sudo apt-key fingerprint 0EBFCD88&lt;br /&gt;
 pub   4096R/0EBFCD88 2017-02-22&lt;br /&gt;
       フィンガー・プリント = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88&lt;br /&gt;
 uid                  Docker Release (CE deb) &amp;lt;docker@docker.com&amp;gt;&lt;br /&gt;
 sub   4096R/F273FCD8 2017-02-22&lt;br /&gt;
フィンガー・プリントが&amp;quot;9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88&amp;quot;なら、Docker公式リポジトリの鍵を登録できている。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* x86_64, stable版のDockerリポジトリを追加する。&lt;br /&gt;
 $ sudo add-apt-repository \&lt;br /&gt;
    &amp;quot;deb [arch=amd64] https://download.docker.com/linux/ubuntu \&lt;br /&gt;
    $(lsb_release -cs) \&lt;br /&gt;
    stable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* パッケージインデックスの更新&lt;br /&gt;
 $ sudo apt update&lt;br /&gt;
 ヒット:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease&lt;br /&gt;
 ヒット:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease                                            &lt;br /&gt;
 ヒット:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease                                          &lt;br /&gt;
 ヒット:4 http://security.ubuntu.com/ubuntu xenial-security InRelease                                   &lt;br /&gt;
 取得:5 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]&lt;br /&gt;
 取得:6 https://download.docker.com/linux/ubuntu xenial/stable amd64 Packages [8,482 B] &lt;br /&gt;
 ヒット:7 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease&lt;br /&gt;
Dockerのパッケージインデックスを読み込めている。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* インストール&lt;br /&gt;
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* sudo使わずにdockerを使える様にする&lt;br /&gt;
** デフォルトではdockerはsudoしないと使えない。ユーザーをdockerグループへ追加することでsudoなしでも使える様になる。&lt;br /&gt;
** [https://docs.docker.com/install/linux/linux-postinstall/ Post-installation steps for Linux]&lt;br /&gt;
** [https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface セキュリティ上の注意]を把握した上で使用すること。&lt;br /&gt;
 # dockerユーザーグループの作成&lt;br /&gt;
 $ sudo groupadd docker&lt;br /&gt;
 # ユーザーをdockerグループへ追加&lt;br /&gt;
 $ sudo usermod -aG docker &amp;lt;ユーザー名&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 動作テスト - Hello Worldコンテナの実行 -&lt;br /&gt;
 $ docker run hello-world&lt;br /&gt;
&lt;br /&gt;
出力は以下。&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
 Unable to find image 'hello-world:latest' locally&lt;br /&gt;
 latest: Pulling from library/hello-world&lt;br /&gt;
 1b930d010525: Pull complete &lt;br /&gt;
 Digest: sha256:5f179596a7335398b805f036f7e8561b6f0e32cd30a32f5e19d17a3cda6cc33d&lt;br /&gt;
 Status: Downloaded newer image for hello-world:latest&lt;br /&gt;
 &lt;br /&gt;
 Hello from Docker!&lt;br /&gt;
 This message shows that your installation appears to be working correctly.&lt;br /&gt;
 &lt;br /&gt;
 To generate this message, Docker took the following steps:&lt;br /&gt;
  1. The Docker client contacted the Docker daemon.&lt;br /&gt;
  2. The Docker daemon pulled the &amp;quot;hello-world&amp;quot; image from the Docker Hub.&lt;br /&gt;
     (amd64)&lt;br /&gt;
  3. The Docker daemon created a new container from that image which runs the&lt;br /&gt;
     executable that produces the output you are currently reading.&lt;br /&gt;
  4. The Docker daemon streamed that output to the Docker client, which sent it&lt;br /&gt;
     to your terminal.&lt;br /&gt;
 &lt;br /&gt;
 To try something more ambitious, you can run an Ubuntu container with:&lt;br /&gt;
  $ docker run -it ubuntu bash&lt;br /&gt;
 &lt;br /&gt;
 Share images, automate workflows, and more with a free Docker ID:&lt;br /&gt;
  https://hub.docker.com/&lt;br /&gt;
 &lt;br /&gt;
 For more examples and ideas, visit:&lt;br /&gt;
  https://docs.docker.com/get-started/&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
こんにちは。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* システムブート時にdockerが自動で立ち上がる様にする&lt;br /&gt;
** [https://docs.docker.com/install/linux/linux-postinstall/ Post-installation steps for Linux]&lt;br /&gt;
 $ sudo systemctl enable docker&lt;br /&gt;
 Synchronizing state of docker.service with SysV init with /lib/systemd/systemd-sysv-install...&lt;br /&gt;
 Executing /lib/systemd/systemd-sysv-install enable docker&lt;/div&gt;</summary>
		<author><name>Kttn</name></author>	</entry>

	</feed>