Project

General

Profile

Actions

Task #480

open

Task #473: Docker learning phase 1

Docker learning phase 1 [Sơn]

Added by Son Dang about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
10/24/2023
Due date:
% Done:

100%

Estimated time:

Description

1.What is Docker?
Docker provides platform for developing, deploying and running applications. Docker packages and runs an application in independent environment called Docker container.

2.When to use/not use Docker (pros/cons)?
Use:
- when your app use many lib, many applications to dev, deploy and run. Clients don’t need to install or config anything.
- when app run on many OS.
- when you need to launch the app on another developer's computer or server

Not to use:
- small or simple app, Docker will make it difficult
- don’t know how to use Docker properly
- when you need to speed up app

3.What is docker-compose?
You have many containers to manage. Docker compose is a tool for managing your containers. With docker-compose you use a YAML file to configure your application's services. you create and start all the services from your configuration with one command.
Look like pubspec file in Flutter I think.

4.Common docker/docker-compose commands
docker-compose up: run containers
docker-compose config: display configurations
docker-compose exec: Execute
docker-compose build: create image from dockerfile
docker-compose restart: restart containers
docker-compose stop: stop containers

No data to display

Actions

Also available in: Atom PDF