Wednesday, July 22, 2015

Setup NovaDocker Container via supertaihei02/docker-centos-lamp:lamp with RDO Kilo on CentOS 7.1

[root@ServerCentOS71 ~(keystone_admin)]# docker pull "supertaihei02/docker-centos-lamp:lamp"
Trying to pull repository docker.io/supertaihei02/docker-centos-lamp ...
fd8dbcf7c7a8: Download complete 
511136ea3c5a: Download complete 
34e94e67e63a: Download complete 
0c752394b855: Download complete 
313bc652d65e: Download complete 
7bca8e6c58d0: Download complete 
02c7dd4b7b17: Download complete 
1ccb205c0045: Download complete 
67c95f15098c: Download complete 
265c1884886d: Download complete 
397ee04ea830: Download complete 
d57e43613b5c: Download complete 
2614d5f8ae73: Download complete 
bcd82bfaa75d: Download complete 
2513dc5a7634: Download complete 
99c99df8dd45: Download complete 
2c7af5e056c6: Download complete 
474020a06892: Download complete 
72ca693b56ec: Download complete 
32538e0f2a30: Download complete 
67d8a91c730d: Download complete 
a3f485a396f4: Download complete 
ad78608b9dec: Download complete 
08fbdbd00577: Download complete 
1fa3dcbd7265: Download complete 
789146ed1568: Download complete 
297a56c9f440: Download complete 
1b1962c27933: Download complete 
de86771fcddf: Download complete 
2fc57b1bb564: Download complete 
b9979c770dbd: Download complete 
dfa087672ba1: Download complete 
108d43aa66f4: Download complete 
4573e6861576: Download complete 
Status: Downloaded newer image for docker.io/supertaihei02/docker-centos-lamp:lamp
 
[root@ServerCentOS71 ~(keystone_admin)]# docker save supertaihei02/docker-centos-lamp:lamp | \
glance image-create --is-public=True   --container-format=docker \
--disk-format=raw --name supertaihei02/docker-centos-lamp:lamp
 
+------------------+---------------------------------------+
| Property         | Value                                 |
+------------------+---------------------------------------+
| checksum         | 24169bb5bf7b8e218af565b9105d231f      |
| container_format | docker                                |
| created_at       | 2015-07-22T13:15:49.000000            |
| deleted          | False                                 |
| deleted_at       | None                                  |
| disk_format      | raw                                   |
| id               | b317fed0-4618-406b-925f-954eb2aa35f7  |
| is_public        | True                                  |
| min_disk         | 0                                     |
| min_ram          | 0                                     |
| name             | supertaihei02/docker-centos-lamp:lamp |
| owner            | 616a4800e9a541b78e4aba836314883d      |
| protected        | False                                 |
| size             | 899017728                             |
| status           | active                                |
| updated_at       | 2015-07-22T13:17:13.000000            |
| virtual_size     | None                                  |
+------------------+---------------------------------------+
Next
[root@ServerCentOS71 ~(keystone_admin)]# docker images |grep lamp
docker.io/supertaihei02/docker-centos-lamp   lamp                fd8dbcf7c7a8      13 months ago       883.8 MB
 
Nova-Doker container started

[root@ServerCentOS71 ~(keystone_admin)]# docker ps
 
CONTAINER ID        IMAGE                                   COMMAND               CREATED             STATUS              PORTS               NAMES
6a1e0a782a7d        supertaihei02/docker-centos-lamp:lamp   "/usr/bin/monit -I"   4 minutes ago       Up 4 minutes                            nova-8ade872c-45dc-40b0-be38-a5ab61d7de0f 
 
[root@ServerCentOS71 ~(keystone_admin)]# docker logs 6a1e0a782a7d
monit: generated unique Monit id 78e9d47e7325f30d9ba76b908278921b and stored to '/var/monit/
 
    
 
  
 
[root@ServerCentOS71 ~]# ssh -p 22 -l guest  192.168.1.165
guest@192.168.1.165's password: 
Last login: Thu Jul 23 04:39:50 2015 from 192.168.1.87
[guest@instance-00000010 ~]$ cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

[guest@instance-00000010 ~]$ sudo su -[root@instance-00000010 ~]# ps -ef | grep -v ""

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 01:22 ?        00:00:00 /usr/bin/monit -I
root        18     1  0 01:22 ?        00:00:00 /usr/sbin/sshd
root       300     1  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     302   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     303   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     304   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     305   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     306   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     307   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     308   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
apache     309   300  0 01:22 ?        00:00:00 /usr/sbin/httpd
root      1079     1  0 02:08 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql     1286  1079  0 02:08 ?        00:00:03 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
boris     4270     1  0 04:25 ?        00:00:01 /usr/bin/Xvnc :1 -desktop instance-00000010:1 (boris) -auth /home/boris/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /home/boris/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
boris     4275     1  0 04:25 ?        00:00:00 /usr/bin/gnome-session
boris     4276  4275  0 04:25 ?        00:00:00 vncconfig -iconic
boris     4284     1  0 04:25 ?        00:00:00 dbus-launch --sh-syntax --exit-with-session
boris     4285     1  0 04:25 ?        00:00:00 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
boris     4296     1  0 04:25 ?        00:00:00 /usr/libexec/gconfd-2
boris     4301     1  0 04:25 ?        00:00:00 gnome-keyring-daemon --start
boris     4304     1  0 04:25 ?        00:00:00 /usr/libexec/gnome-settings-daemon
boris     4309     1  0 04:25 ?        00:00:00 /usr/libexec/gvfsd
boris     4313  4275  0 04:25 ?        00:00:00 metacity
boris     4319  4275  0 04:25 ?        00:00:00 gnome-panel
boris     4321  4275  0 04:25 ?        00:00:00 nautilus
boris     4323     1  0 04:25 ?        00:00:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=18
boris     4345     1  0 04:25 ?        00:00:00 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=18
boris     4348     1  0 04:25 ?        00:00:00 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=24
boris     4356  4275  0 04:25 ?        00:00:00 gnome-volume-control-applet
boris     4360     1  0 04:25 ?        00:00:00 gnome-screensaver
boris     4366     1  0 04:25 ?        00:00:00 /usr/libexec/gvfsd-trash --spawner :1.7 /org/gtk/gvfs/exec_spaw/0
boris     4383     1  0 04:25 ?        00:00:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=28
boris     4384     1  0 04:25 ?        00:00:00 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=34
boris     4470     1  0 04:25 ?        00:00:05 /usr/lib64/firefox/firefox
root      6879    18  0 04:39 ?        00:00:00 sshd: guest [priv]
guest     6895  6879  0 04:39 ?        00:00:00 sshd: guest@pts/0
guest     6896  6895  0 04:39 pts/0    00:00:00 -bash
root      6925  6896  0 04:39 pts/0    00:00:00 sudo su -
root      6926  6925  0 04:39 pts/0    00:00:00 su -
root      6927  6926  0 04:39 pts/0    00:00:00 -bash
root      7082  6927  3 04:40 pts/0    00:00:00 ps -ef