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 ps
show running containers-a
flag to show all containers.docker run
run image in a new container:-it
flag makes it interactive.docker image
#TODOdocker tag
rename 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
wget
andcurl
:apt-get install wget curl
Continue Docker image Shell#
- 2022-01-17
1 |
|