Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docker [2023-01-08 03:35] – [Docker reference] asdf | docker [2023-02-25 19:35] (current) – asdf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Docker | + | ====== Docker ====== |
| <WRAP center round todo 60%> | <WRAP center round todo 60%> | ||
| Migrate info from [[https:// | Migrate info from [[https:// | ||
| </ | </ | ||
| - | |||
| - | |||
| Docker uses a client-server architecture. There is no requirement that the daemon and client be run on the same machine. | Docker uses a client-server architecture. There is no requirement that the daemon and client be run on the same machine. | ||
| ===== Containers ===== | ===== Containers ===== | ||
| - | Docker containers are not full VMs but instead special processes running in the host (on Linux). | + | Docker containers are not full VMs but instead special processes running in the host (on Linux). Containers have their own filesystems, |
| + | |||
| + | Note that there need not be a one-to-one correspondence between containers and images. A container is a single instance of an image with its own unique resources. Once created, a container can be stopped, started, renamed, destroyed, and so on. | ||
| ===== Images ===== | ===== Images ===== | ||
| - | Images contain the app binaries and dependencies, | + | Images contain the app binaries and dependencies, |
| ===== Volumes and bind mounts ===== | ===== Volumes and bind mounts ===== | ||
| + | Docker allows data persistence through one of two means: //volumes// and //bind mounts//. Bind mounts are exactly what they sound like --- directories on the host that shared directly with the container. Volumes, on the other hand, are completely managed by Docker and have extra functionality. | ||
| + | |||
| ===== Networks ===== | ===== Networks ===== | ||
| + | |||
| ===== Dockerfiles ===== | ===== Dockerfiles ===== | ||
| Much of Docker' | Much of Docker' | ||
| A full Dockerfile reference is available [[https:// | A full Dockerfile reference is available [[https:// | ||
| + | |||
| ===== Docker Compose ===== | ===== Docker Compose ===== | ||
| Docker Compose eases the instantiation of multi-container applications. | Docker Compose eases the instantiation of multi-container applications. | ||
| + | |||
| + | {{tag> | ||