Docker Note
basics#
- 2022-01-15
- Official Guide
- For run docker with Node JS
- The programming with mosh
- Youtube How to Get Started with Docker
- Docker
- Docker has
- dockerfile
- image: defined by a
dockerfile- name
- tag: like a version number
- is an immutable file
- instantiate to a new container with
docker build
- container: the sandbox I called
- instance of image, run by
docker run - see difference Docker Image vs Container: The Major Differences
- instance of image, run by
- CLI
docker psshow running containers-aflag to show all containers.docker runrun image in a new container:-itflag makes it interactive.docker image#TODOdocker tagrename image
- docker-compose #TODO
- Using command line / terminal
- override CMD
- run ubuntu in docker
docker run -it ubuntu(create a new container from image) - "run linux command in docker" not working
dockerfile#
New Ubuntu Image#
- @2022-01-17
- Should move to Linux Note?
1 2 | |
Ubuntu New user#
- @2022-01-17
- Should move to Linux Note?
1 2 | |
Ubuntu tools for Docket image#
- 2022-01-17
- add
wgetandcurl:apt-get install wget curl
Continue Docker image Shell#
- 2022-01-17
1 | |