Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Latest commit

 

History

History
58 lines (44 loc) · 1.05 KB

README.md

File metadata and controls

58 lines (44 loc) · 1.05 KB

Docker tutorial

Download resources

git clone https://github.com/dmitry-brazhenko/docker_tutorial.git
cd docker_tutorial

Task 1

cd first_example

Launch:

docker build -t first_docker .
docker run -p 8080:8080 first_docker 

Go to localhost:8080. Login: admin, Password: admin

Save docker image (first_docker) to file:

 docker save first_docker > first_docker.tar

Load and run docker image (first_docker) from file:

docker load < first_docker.tar
docker run first_docker

Task 2

cd second_example

Launch docker images:

docker-compose up

Go to localhost:5050 Login: admin@admin.com, Password: root

  • Home assignment: add docker image from task 1 to this composition. Create a database to store Google trends that are generated in task 1

Usefull commands

Remove all Docker containers:

 docker rm -f $(docker ps -a -q)

Remove all Docker images:

docker rmi -f $(docker images -aq)