Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Travel to Docker

No description
by

jooho lee

on 24 May 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Travel to Docker

Why Docker?
What is Docker?
Change Cloud World
Getting Started
Travel to Docker
Profile

Jooho Lee (Jay)
WebLogic Engineer at GT Plus

Software Engineer at IBM Korea Lab

JBoss Engineer at Redhat GSS

JBUG / KSUG Member

Interest field :
Provisioning, Development,WAS
Cloud
ETC
Package

Share

Install
Automation + Secure + Performance
Go Programming
LXC(Linux Container)
CGroups(Control Groups)
Linux Kernel
Key Point
Share OS level => Lightweight
Share Image => Portable
(Git)
Use Host Resource => Fast
No more need sysadmin role only.
Cloud computing force to change role of sysadmin
"DevOps"
http://puppetlabs.com/blog/what-is-a-devops-engineer
* Install Docker
sudo yum -y install docker-io
http://docs.docker.io/installation/
*Pull Image from index
https://index.docker.io/
sudo docker pull ubuntu
* Run image
sudo docker run -i -t ubuntu /bin/bash
http://docs.docker.io/reference/commandline/cli/#run
Deep dive
Docker, Docker-repository, Central repository
Docker commands
http://docs.docker.io/reference/commandline/cli/
*Docker
Important
Commands*
run
- Start up image as a container
#
docker run -i -t -h="ws1.jhouse.co.kr" docker-registry:5000/centos65:apache /bin/bash

ps
- Check running containers
#
docker ps (-a -q)

images
- Check images in local repository
#
docker images

commit
- Save changed file system
#
docker commit 55a3db830fab docker-registry:5000/centos65:apache

build
- Create new images with DockerFile
#
docker build -t docker-registry:5000/centos65:apache .

push
- Copy images to remote respository
#
docker push docker-registry:5000/centos65:apache

pull
- Get images from remote repository
#
docker pull docker-registry:5000/centos65:apache

DockerFile -
Automation part using in build

FROM
docker-registry:5000/centos65:basic
RUN
yum update -y
RUN yum install -y java-1.7.0-openjdk*
RUN yum install -y unzip
RUN yum install -y openssh-server
RUN yum install -y httpd
RUN yum install -y supervisor
RUN echo 'root:redhat' | chpasswd
RUN mkdir -p /home/apache/tmp
ADD
images/jboss-ews-httpd-2.0.0-RHEL6-x86_64.zip /home/apache/tmp
RUN unzip -q /home/apache/jboss-ews-httpd-2.0.0-RHEL6-x86_64.zip -d /home/apache
ADD conf/JBoss_HTTP.conf /home/apache/httpd/conf.d/
ADD conf/mod_jk.conf /home/apache/httpd/conf.d/
ADD conf/workers.properties /home/apache/httpd/conf.d/
ADD shell/start.sh /home/apache/httpd/
EXPOSE
21,22,80
ADD supervisord.conf /home/apache/tmp/supervisord.conf
RUN cat /home/apache/tmp/supervisord.conf > /etc/supervisord.conf
CMD
["/usr/bin/supervisord"]
Demo
Reference
References

http://cloudcounselor.com/2014/01/07/docker-private-registry-on-centos-rhel-6-5/
http://www.activestate.com/blog/2014/01/deploying-your-own-private-docker-registry
http://blog.thoward37.me/articles/where-are-docker-images-stored/
http://kencochrane.net/blog/2013/08/the-docker-guidebook/
http://ehazlett.github.io/applications/2014/01/10/docker-private-registry/
https://github.com/dotcloud/docker-registry/
http://blog.docker.io/2013/10/gathering-lxc-docker-containers-metrics/
https://github.com/crosbymichael/dockerui
http://blog.docker.io/2013/07/how-to-use-your-own-registry/
http://cloudcounselor.com/2014/01/07/docker-private-registry-on-centos-rhel-6-5/
https://github.com/dotcloud/docker-registry/blob/master/README.md
https://github.com/shipyard/shipyard
http://blog.docker.io/2013/07/docker-desktop-your-desktop-over-ssh-running-inside-of-a-docker-container/

Special Thanks to
Rogan Kyuseok Lee
(Senior Technical Account Manager, Red Hat)
Thanks
Traditional VM
Docker Way
Docker Way Detail
Docker Planet
Welcome to
Full transcript