Last active
August 29, 2015 14:13
-
-
Save smile-0yen/13897dfe4b4952dd46ce to your computer and use it in GitHub Desktop.
Dockerの基本操作をCentOS 7で確認 その2 〜現在の状態を確認する 〜 ref: http://qiita.com/smile-0yen/items/4a35ea9f0279f4d85c42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rpm -q docker | |
docker-1.3.2-4.el7.centos.x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rpm -ql docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker ps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
341d035f815d shipyard/shipyard:2.0.6 "/app/controller" 12 days ago Up 12 days 0.0.0.0:80->8080/tcp shipyard | |
e8f226ce407c shipyard/rethinkdb:latest "/usr/bin/rethinkdb 12 days ago Up 12 days 0.0.0.0:49153->29015/tcp, 0.0.0.0:49154->8080/tcp, 0.0.0.0:49155->28015/tcp shipyard-rethinkdb | |
df01795a4f22 shipyard/rethinkdb:latest "/bin/bash -l" 12 days ago Up 12 days 28015/tcp, 29015/tcp, 8080/tcp shipyard-rethinkdb-data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker ps -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
341d035f815d shipyard/shipyard:2.0.6 "/app/controller" 12 days ago Up 12 days 0.0.0.0:80->8080/tcp shipyard | |
e8f226ce407c shipyard/rethinkdb:latest "/usr/bin/rethinkdb 12 days ago Up 12 days 0.0.0.0:49153->29015/tcp, 0.0.0.0:49154->8080/tcp, 0.0.0.0:49155->28015/tcp shipyard-rethinkdb | |
df01795a4f22 shipyard/rethinkdb:latest "/bin/bash -l" 12 days ago Up 12 days 28015/tcp, 29015/tcp, 8080/tcp shipyard-rethinkdb-data | |
a9b880a205be fedora:latest "/bin/python -m Simp 12 days ago Exited (-1) 12 days ago my_webserver2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker top df01795a4f22 -ax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PID TTY STAT TIME COMMAND | |
22897 pts/1 Ss+ 0:00 /bin/bash -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker logs -t --tail=3 341d035f815d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015-01-13T05:43:11.857589182Z INFO[0000] shipyard version 2.0.6 | |
2015-01-13T05:43:12.860659123Z INFO[0001] checking database | |
2015-01-13T05:43:12.872346882Z INFO[0001] controller listening on :8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker exec -i e8f226ce407c ps -ax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PID TTY STAT TIME COMMAND | |
1 ? Ssl+ 25:12 /usr/bin/rethinkdb --bind all | |
6 ? S 0:00 /usr/bin/rethinkdb --bind all | |
77 ? R 0:00 ps -ax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/docker/certs.d | |
/etc/sysconfig/docker | |
/etc/sysconfig/docker-storage | |
/etc/udev/rules.d | |
/etc/udev/rules.d/80-docker.rules | |
/usr/bin/docker | |
(以下略) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker exec -it e8f226ce407c /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@e8f226ce407c:/data# hostname | |
e8f226ce407c | |
root@e8f226ce407c:/data# ls | |
rethinkdb_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Client version: 1.3.2 | |
Client API version: 1.15 | |
Go version (client): go1.3.3 | |
Git commit (client): 39fa2fa/1.3.2 | |
OS/Arch (client): linux/amd64 | |
Server version: 1.3.2 | |
Server API version: 1.15 | |
Go version (server): go1.3.3 | |
Git commit (server): 39fa2fa/1.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ systemctl status docker.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker.service - Docker Application Container Engine | |
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled) | |
Active: active (running) since 月 2014-12-29 16:29:50 UTC; 1 weeks 6 days ago | |
Docs: http://docs.docker.com | |
Main PID: 857 (docker) | |
CGroup: /system.slice/docker.service | |
├─ 857 /usr/bin/docker -d --selinux-enabled -H fd:// | |
├─22958 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 49153 -container-ip 172.17.0.60 -container-port 29015 | |
├─22966 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 49154 -container-ip 172.17.0.60 -container-port 8080 | |
├─22974 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 49155 -container-ip 172.17.0.60 -container-port 28015 | |
└─23262 docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 80 -container-ip 172.17.0.61 -container-port 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/sysconfig/docker | |
# Modify these options if you want to change the way the docker daemon runs | |
OPTIONS=--selinux-enabled -H fd:// | |
# Location used for temporary files, such as those created by | |
# docker load and build operations. Default is /var/lib/docker/tmp | |
# Can be overriden by setting the following environment variable. | |
# DOCKER_TMPDIR=/var/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo docker info | |
Containers: 7 | |
Images: 33 | |
Storage Driver: devicemapper | |
Pool Name: docker-253:1-134297046-pool | |
Pool Blocksize: 65.54 kB | |
Data file: /var/lib/docker/devicemapper/devicemapper/data | |
Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata | |
Data Space Used: 1.464 GB | |
Data Space Total: 107.4 GB | |
Metadata Space Used: 2.507 MB | |
Metadata Space Total: 2.147 GB | |
Library Version: 1.02.84-RHEL7 (2014-03-26) | |
Execution Driver: native-0.2 | |
Kernel Version: 3.10.0-123.el7.x86_64 | |
Operating System: CentOS Linux 7 (Core) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment