You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A container registry is a repository, or collection of repositories, used to store and access container images. They serve as a place to store and share container images between developer systems, continuous integration servers, and deployment environments.
While you can pull many public images from registries without authenticating, in order to push images to a registry, or pull a private image, you will need to authentic
22
+
23
+
Docker can login directly to some registries with basic authentication (username/password) or call out to separate programs known as credential helpers. For example, to authenticate to the Google Container Registry, docker uses the `gcloud` command line utility from GCP (https://cloud.google.com/container-registry/docs/advanced-authentication#gcloud-helper).
24
+
25
+
If available, Docker can also store the credentials in a secure store (`macOS keychain`, `Windows Credential Manager`) to help protect those credentials.
- Uses `--link` to enable easy host name for network connections
53
+
- Publishing ports useful to connect to each service individually from host, but only necessary to connect to the frontend
54
+
- Named containers make it easier to reference (e.g. with link), but does require removing them to avoid naming conflict
55
+
- Restart policy allows docker to restart the container (for example if database weren't up yet causing one of the api servers to crash)
56
+
57
+
### docker compose
58
+
59
+
See Makefile:
60
+
```bash
61
+
make compose-build
62
+
make compose-up
63
+
```
64
+
65
+
Using docker compose allows encoding all of the logic from the `docker build` and `docker run` commands into a single file. Docker compose also manages naming of the container images and containers, attaching to logs from all the containers at runtime, etc...
0 commit comments