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
The CLI's validation behavior appears to run amok when the DOCKER_CONFIG variable is set to a normal file instead of a directory. This creates some serious red herrings when debugging issues caused by a bad DOCKER_CONFIG value.
Reproduce
export DOCKER_CONFIG="$(mktemp -d)"
touch "$DOCKER_CONFIG/config.json"export DOCKER_CONFIG="$DOCKER_CONFIG/config.json"# no error
docker version
# no error
docker ps
# error message: 'buildx' is not a docker command.
docker build
# error message: unknown flag: --bootstrap
docker buildx imagetools create --bootstrap
Expected behavior
All docker commands should output an error message indicating that DOCKER_CONFIG must be a directory.
docker version
Client: Docker Engine - Community
Version: 26.1.0
API version: 1.43 (downgraded from 1.45)
Go version: go1.21.9
Git commit: 9714adc
Built: Mon Apr 22 17:06:56 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Desktop 4.26.1 (131620)
Engine:
Version: 24.0.7
API version: 1.43 (minimum version 1.12)
Go version: go1.20.10
Git commit: 311b9ff
Built: Thu Oct 26 09:08:15 2023
OS/Arch: linux/arm64
Experimental: false
containerd:
Version: 1.6.25
GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f
runc:
Version: 1.1.10
GitCommit: v1.1.10-0-g18a0cb0
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Description
The CLI's validation behavior appears to run amok when the
DOCKER_CONFIG
variable is set to a normal file instead of a directory. This creates some serious red herrings when debugging issues caused by a badDOCKER_CONFIG
value.Reproduce
Expected behavior
All docker commands should output an error message indicating that
DOCKER_CONFIG
must be a directory.docker version
Client: Docker Engine - Community Version: 26.1.0 API version: 1.43 (downgraded from 1.45) Go version: go1.21.9 Git commit: 9714adc Built: Mon Apr 22 17:06:56 2024 OS/Arch: linux/amd64 Context: default Server: Docker Desktop 4.26.1 (131620) Engine: Version: 24.0.7 API version: 1.43 (minimum version 1.12) Go version: go1.20.10 Git commit: 311b9ff Built: Thu Oct 26 09:08:15 2023 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.25 GitCommit: d8f198a4ed8892c764191ef7b3b06d8a2eeb5c7f runc: Version: 1.1.10 GitCommit: v1.1.10-0-g18a0cb0 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: