mirror of
https://github.com/docker/compose.git
synced 2026-11-17 13:45:39 +00:00
Align the credentials use_api_socket gives a service with what `docker run --use-api-socket` does in the Docker CLI: - the config file is created with mode 0600 instead of the 0444 default of a config file, so that only the container's root reads it; - a service which sets DOCKER_CONFIG itself gets the socket but no credentials, as the comment of the function always said; - nothing is injected, and DOCKER_CONFIG is not set, when the host has no registry credentials, and they are not looked up when no service is to get them. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
7 lines
125 B
YAML
7 lines
125 B
YAML
services:
|
|
app:
|
|
image: alpine
|
|
init: true
|
|
use_api_socket: true
|
|
user: "1000:1000"
|
|
command: sleep infinity
|