Dockerサーバーのインストール
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[Docker]]
* Dockerサーバーのインストール [#lbe48114]
*** CentOS6 [#m62abe81]
### Dockerのインストール(CentOS6)
# cd /usr/local/src
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epe...
# rpm -ivh epel-release-6-8.noarch.rpm
# yum install --eanblerepo=epel docker-io
========================================================...
パッケージ アーキテクチャ バージョン ...
========================================================...
インストールしています:
docker-io x86_64 1.5.0-...
依存性関連でのインストールをします。:
libcgroup x86_64 0.40.rc1-15.e...
lua-alt-getopt noarch 0.7.0-1.el6 ...
lua-filesystem x86_64 4.2-1.el6 ...
lua-lxc x86_64 1.0.7-1.el6...
lxc x86_64 1.0.7-1.e...
lxc-libs x86_64 1.0.7-1.el6...
トランザクションの要約
========================================================...
インストール 7 パッケージ
総ダウンロード容量: 5.2 M
インストール済み容量: 21 M
これでいいですか? [y/N]y
# chkconfig --list docker
docker 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# service docker status
docker は停止しています
# service docker start
Starting cgconfig service: ...
Starting docker:
# pgrep -fl docker
26368 /usr/bin/docker -d
*** MacOS Marvericks(boot2docker 1.7.0) [#yc1071a3]
+https://docs.docker.com/installation/mac/#command-line-d...
+最新版のBoot2Dockerをインストール
+ターミナルを起動
+下記実行
$ boot2docker init
$ boot2docker start
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/kazuma/.boot2docker/c...
export DOCKER_TLS_VERIFY=1
$ boot2docker status
running
$ cd ~
$ cp -p .bash_profile .bash_profile
$ vim .bash_profile
+ ### Docker(boot2docker)
+ export DOCKER_HOST=tcp://192.168.59.103:2376
+ export DOCKER_CERT_PATH=/Users/kazuma/.boot2docker/cer...
+ export DOCKER_TLS_VERIFY=1
$ source .bash_profile
$ env | grep -i docker
DOCKER_HOST=tcp://192.168.59.103:2376
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/Users/kazuma/.boot2docker/certs/boot2d...
終了行:
[[Docker]]
* Dockerサーバーのインストール [#lbe48114]
*** CentOS6 [#m62abe81]
### Dockerのインストール(CentOS6)
# cd /usr/local/src
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epe...
# rpm -ivh epel-release-6-8.noarch.rpm
# yum install --eanblerepo=epel docker-io
========================================================...
パッケージ アーキテクチャ バージョン ...
========================================================...
インストールしています:
docker-io x86_64 1.5.0-...
依存性関連でのインストールをします。:
libcgroup x86_64 0.40.rc1-15.e...
lua-alt-getopt noarch 0.7.0-1.el6 ...
lua-filesystem x86_64 4.2-1.el6 ...
lua-lxc x86_64 1.0.7-1.el6...
lxc x86_64 1.0.7-1.e...
lxc-libs x86_64 1.0.7-1.el6...
トランザクションの要約
========================================================...
インストール 7 パッケージ
総ダウンロード容量: 5.2 M
インストール済み容量: 21 M
これでいいですか? [y/N]y
# chkconfig --list docker
docker 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# service docker status
docker は停止しています
# service docker start
Starting cgconfig service: ...
Starting docker:
# pgrep -fl docker
26368 /usr/bin/docker -d
*** MacOS Marvericks(boot2docker 1.7.0) [#yc1071a3]
+https://docs.docker.com/installation/mac/#command-line-d...
+最新版のBoot2Dockerをインストール
+ターミナルを起動
+下記実行
$ boot2docker init
$ boot2docker start
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH=/Users/kazuma/.boot2docker/c...
export DOCKER_TLS_VERIFY=1
$ boot2docker status
running
$ cd ~
$ cp -p .bash_profile .bash_profile
$ vim .bash_profile
+ ### Docker(boot2docker)
+ export DOCKER_HOST=tcp://192.168.59.103:2376
+ export DOCKER_CERT_PATH=/Users/kazuma/.boot2docker/cer...
+ export DOCKER_TLS_VERIFY=1
$ source .bash_profile
$ env | grep -i docker
DOCKER_HOST=tcp://192.168.59.103:2376
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/Users/kazuma/.boot2docker/certs/boot2d...
ページ名: