Successfully reported this slideshow.
Your SlideShare is downloading. ×
Advertisement

More Related Content

Advertisement

Intro to docker

  1. 1. Intro to By Towfiqul Islam towfiqul@exabyting.com
  2. 2. DOCKER
  3. 3. Key points: ● Dockerfile ● Image ● Container ● Service ● Docker-Compose ● dcstart ● dcstop
  4. 4. Dockerfile A set of instructions i.e. FROM ubuntu:18.04 COPY . /app RUN make /app RUN echo “Docker build done”
  5. 5. Image 1. Dockerfile 2. Run build command result = docker image docker build +
  6. 6. Container Main struggle is to make a docker image. Rest of the journey is like a Pawri. :p + run
  7. 7. Service Every running container is a docker service. কন্টেইনার যা দেয় ঐটাই Science ( সার্ভি স )।
  8. 8. Docker Compose
  9. 9. version: '3' services: mysql: image: mysql:5.7 ports: - 3307:3306 environment: MYSQL_ROOT_PASSWORD: root@123123 MYSQL_DATABASE: db-name MYSQL_USER: user MYSQL_PASSWORD: pass@123123 volumes: - "./volumes/mysql:/var/lib/mysql:rw" - "./volumes/config/my.conf:/etc/mysql/conf.d/config-file.cnf" oracle-db: image: oracleinanutshell/oracle-xe-11g:latest ports: - 1521:1521 - 5500:5500 sftp-server: image: atmoz/sftp volumes: - "./volumes/sftp/A:/home/user/cpsftp/A/:rw" - "./.docker/ssh/id_rsa.pub:/home/vanguard/.ssh/keys/id_rsa.pub" ports: - "2201:22" command: user:userpass:1001 Example of service File name: docker-compose File extension: yml
  10. 10. Trial and Error Some Commands What methods did you use in your experiment? ● docker run ● docker build ● docker-compose up ● docker-compose up --build ● docker-compose up --build -d
  11. 11. The most important takeaway that everyone has to remember is ...
  12. 12. What will I do next? What will you do with your findings next? How will you further your research/findings?
  13. 13. ● www.docker.io ● Documentation ● Getting started (tutorial, installation, guide, etc) ● Introductory whitepaper ● Github: dotcloud/docker ● Google Group: docker-user ● Twitter: @docker ● Meetups: www.docker.io/meetups ● https://www.docker.com/101-tutorial ● https://training.play-with-docker.com/

×