More Related Content
Similar to Docker Tutorial (20)
More from Tatsuya Yagi (6)
Docker Tutorial
- 5. • …
• Virtual Machine!
• Virtual Machine(VM)
• Hyper Visor( )
• OS VM
• supervisor: , ←
supervisor Hyper ?
: https://www.idcf.jp/words/hypervisor.html
- 7. Docker
• Docker
• : OS
OS
OS
Bin/Libs
Apps
OS
Bin/Libs
Apps
OS
Bin/Libs
Apps
VM
OS
Docker Engine
Bin/Libs
Apps
Bin/Libs
Apps
Bin/Libs
Apps
- 8. • Docker
• Linux
• Docker, LXC(Linux Containers), systemd-nspawn
• FreeBSD
• jail
•
• Chroot
• VM
• VM
•
- 9. Docker for Mac
• Docker Mac
• https://docs.docker.com/docker-for-mac/install/#download-
docker-for-mac
•
• docker pull [image] : docker-image
• docker run [image] [daemon] :
• docker ps [container name]:
• docker start [container name] :
• docker restart [container name] :
• docker stop [container name] :
- 11. Ubuntu !
• DockerHub Ubuntu image
• https://hub.docker.com/_/ubuntu/
• URL
• https://asciinema.org/a/BYUZHPhhxzMxDTu4TZeSLNBHX
docker pull ubuntu:latest ( Ubuntu )
docker images( )
docker run –name ubuntu ubuntu:latest /bin/bash (ubuntu
ubuntu:latest image ) ( bash)
- 12. Nginx
• OK
• https://asciinema.org/a/srqlz31e1xZjkgU4pKwehzUD4
• http://127.0.0.1/
systemctl restart nginx
Failed to connect to bus: No such file or directory
(
)
supervisord
docker commit ubuntu nginx:ver1.0 (nginx:ver1.0 Docker image )
docker run –name nginx -p 80:80 –d nginx:ver1.0 /usr/bin/supervisord( 80
supervisord )