1 PART I 1 2 3 4 5 6 7 8 Docker Docker Image Container Repository Docker le Docker Docker 8 1 Docker Linux 2 Docker Docker 3 5 Docker 6 Docker volume 7 8 Docker le Docker le
1 C H A P T E R 1 CPU Data Center 1960 IBM MainFrame z/os x86, Docker Docker Docker Docker Linux Linux Container - LXC Docker Docker 1.1 Docker Docker Docker Go 2013 PaaS Platform as a Service dotcloud
Chapter 1 Docker 11 1-1a 1-1b Docker 1-1 Docker Docker Host OS 1.4 Docker Linux Docker Docker
Chapter 2 Docker 21 2.3 Linux Mint 17 VirtualBox Ubuntu 14.04 Docker 1.3 VirturBox NAT 2-5 Docker docker Ubuntu 14.04 10.0.2.15 VirtualBox Docker docker 2-5 Ubuntu 14.04 IP 10.0.2.15/24 Linux Mint 10.0.2.2/24 192.168.1.0/24
4 C H A P T E R 4 Container Docker Instance Docker 4.1 Docker docker create $ sudo docker create -it ubuntu:latest 7a0c26f96889de46b6276608501b7e8f99e4e31e42ec4a288a1f8e7644316637 $sudo docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 7a0c26f96889 ubuntu:latest "/bin/bash" 6 seconds ago stoic_albattani
5 C H A P T E R 5 Repository Registry dl.dockerpool.com/ubuntu dl.dockerpool.com ubuntu Docker Hub DockerPool 5.1 Docker Hub Docker https://hub.docker.com 15000 Docker Hub 5-1 docker login Email.dockercfg
48 Part I Docker docker search docker pull 5-1 Docker Hub docker pull centos $ sudo docker search centos NAME DESCRIPTION STARS OFFICIAL AUTOMATED centos The official build of CentOS. 865 [OK] ansible/centos7-ansible Ansible on Centos7 34 [OK] tutum/centos Centos image with SSH access. For the root... 13 [OK] jdeathe/centos-ssh-apache-php CentOS-6 6.5 x86_64 / Apache / PHP / PHP m... 8 [OK] blalor/centos Bare-bones base CentOS 6.5 image 8 [OK]... centos root Docker
7 C H A P T E R 7 Internet Docker HOST Docker 1 7.1 -P -p -P Docker 49000 49900 1 Linking Containers Together https://docs.docker.com/userguide/dockerlinks/
88 Part II 9.3 CentOS/Fedora CentOS Fedora Redhat Linux Redhat CentOS CentOS $ sudo docker search -s 2 centos NAME DESCRIPTION STARS OFFICIAL AUTOMATED centos The official build of CentOS. 542 [OK] tianon/centos CentOS 5 and 6 created using rinse instea... 28 ansible/centos7-ansible Ansible on Centos7 13 [OK] blalor/centos Bare-bones base CentOS 6.5 image 7 [OK] saltstack/centos-6-minimal 7 [OK] steeef/graphite-centos CentOS 6.x with Graphite and Carbon via ng... 6 [OK] ariya/centos6-teamcity-server TeamCity Server 8.1 on CentOS 6 6 [OK] tutum/centos-6.4 DEPRECATED. Use tutum/centos:6.4 instead.... 5 [OK] tutum/centos Centos image with SSH access. For the root... 5 [OK] CentOS7 Docker CentOS7 Fedora docker search 2 fedora $ sudo docker search -s 2 fedora NAME DESCRIPTION STARS OFFICIAL AUTOMATED fedora (Semi) Official Fedora base image. 84 [OK] mattdm/fedora A basic Fedora image corresponding roughly... 51 fedora/apache 27 [OK] fedora/couchdb 22 [OK] fedora/mariadb 22 [OK] fedora/redis 19 [OK] fedora/nginx 19 [OK] fedora/python 18 [OK] fedora/qpid 18 [OK]
134 Part II 11-4 Weblogic administration server scaling administration server administration server Manged server docker commit + Docker le Weblogic 12.11 jdk 1.6 Ubuntu14.04 Weblogic 1. Weblogic docker run -ti docker commit
1 3 C H A P T E R 1 3 Docker C C++ Java PHP Python Perl Ruby JavaScript Ruby Web PHP Docker 13.1 PHP 13.1.1 PHP Stack PHP 1 Web PHP Web PV /UV PHP PHP quick and dirty PHP PHP Docker PHP MVC Docker 1 PHP http://php.net
Chapter 13 175 1. PHP Docker le Docker Hub FROM php:5.6-apache COPY src/ /var/www/html/ src/ PHP 2. Docker le $ sudo docker build -t my-php-app. 3. $ sudo docker run -it --rm --name my-running-app my-php-app php.ini /usr/local/lib PHP PHP PHP FROM php:5.6-apache COPY config/php.ini /usr/local/lib/ COPY src/ /var/www/html/ Note src/ PHP config/ php.ini Docker Hub PHP $ sudo docker run -it --rm --name my-apache-php-app -v "$(pwd)":/var/www/html php:5.6- apache