Docker: OS-level virtualization software.
Concepts
- Namespaces: what the virtualization software can see. We set these up with syscalls. Restricts the view of the stuff on the virtualization.
Tricks
sudo docker run --rm -it ubuntu /bin/bash-> run docker with ubuntu, then activate shellsudo docker ps-> list all docker running processesdocker build -t [name]:[latest] .-> build your dockerfileducker run -it [name]:[latest]-> run your docker stuff interactivelydocker image-> look at docker images arounddocker exec -it [container] sh-> open shell inside a containerdocker inspect <container name>-> inspect some shitdocker container stats-> look at stats
← home