Documente Academic
Documente Profesional
Documente Cultură
UE17CS352
Hands-on Session-2
Install Docker, Docker Compose
Documentation: https://docs.docker.com/engine/reference/builder/
https://docs.docker.com/engine/reference/commandline/run/
Extension
● Try to ssh into your docker container and try to execute shell commands.
Docker Compose
Documentation : https://docs.docker.com/compose/
Extension:
● Create a volume, and ensure all the data in your project’s root directory are
stored persistently.
● Port mapping with different ports to the public IP can be routed to different
container ports
Docker Resources
● Docker overview
○ https://docs.docker.com/engine/docker-overview/
● Install Docker on your Ubuntu AWS instance
○ https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce
● How to build your own docker image
○ https://docs.docker.com/get-started/part2/
● Map container port to localhost of AWS instance
○ https://docs.docker.com/get-started/part2/#run-the-app
● Publish image to Docker Hub
○ https://hackernoon.com/publish-your-docker-image-to-docker-hub-10b826793faf
● Alpine docker image
○ https://hub.docker.com/_/alpine
● Docker Compose
○ https://docs.docker.com/compose/