Task #480
openTask #473: Docker learning phase 1
Docker learning phase 1 [Sơn]
100%
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