3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Doker Handbook

Last updated at Posted at 2015-11-21

Docker ハンドブック

1. 環境構築

1.1. 環境

  • Ubuntu 14.04 LTS

1.2 インストール

$sudo apt-get install docker.id

※ 注意:パッケージ名は "docker"ではない。

1.3. 動作確認

$sudo docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.2.1
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.2.1
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64

2. image操作

2.1. リモートimageの検索

  • 最新のUbuntuを使用する場合
$sudo docker search ubunut 
  • 最新のCentを使用する場合
$sudo docker search centos
  • CentOS 6を指定する場合
$sudo docker search centos6

2.2. imageの取得

$sudo docker pull ubuntu

2.3. imageの確認

  • imageの一覧
$sudo docker images
  • image IDのみ表示
$sudo docker images -q
  • リポジトリを指定したimage IDの表示
$sudo docker images -q ubuntu

2.4. imageの削除

  • image IDを指定してimageを削除
$sudo docker rmi <image ID>
  • ubuntu のimage削除
$sudo docker rmi $(sudo docker images -q ubuntu)
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?