Please enable JavaScript.
Coggle requires JavaScript to display documents.
Dev/Ops - Coggle Diagram
Dev/Ops
-
-
docker container run <image>
- CLI -> Send req via REST API to docker daemon (manage images, containers and others)
- run command : tell daemon to create container from the image and download if it is not stored on machine/ local
Interact with container
- docker run
- -it : i (interactive) + t (tty) : Run with this flag allow us to interactive with that container
- -d : Detached : this flag allow us to run container background without block current terminal session, can keep continuing type in terminal
- docker attach : Connect to a container via terminal.
- --no-stdin : This flag will not send any command (stdin) to the container. If ctrl +c it will terminate the ref of container on terminal not container itself.
-
Docker for Development Environment
Volume
Bind mount
- Bind host file | folder to container -> Have to specify path in host to sync data
- Flag : -v | --mount
-
Component
-
Docker Images
- Template/ List of instructions for:
Docker Containers
- Standalone executable software package = Application + Dependencies
+
Docker Registry
- Server side service for hosting & distributing images
- Detault registry : Docker Hub
-
-