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 current version of docker (Ubuntu 20.04 & 22.04) according to https://docs.docker.com/engine/install/ubuntu/ (Packages: docker-ce docker-ce-cli containerd.io) doesn't create the folder /etc/docker . I think this is a bug, because past versions have created this folder.
We were discussing this, and the /etc/docker directory was previously created as a side-effect of a legacy functionality for schema 2 v1 images ("libtrust"), which created a key.json in this path.
In general, as this directory is not guaranteed to be present (it's an optional path to store config files). That said, we'll make a change in the .deb and .rpm packages to automatically create an empty directory on installation;
Add /etc/docker to RPM and DEB packaging. docker/docker-ce-packaging#842
Not all use cases will benefit; if you depend on this, you should explicitly mkdir -p /etc/docker.
This should be fixed by docker/docker-ce-packaging#842, but the recommendation is to check for the presence of the directory, and where needed to create it and/or set the permissions correctly (see moby/moby#41386)
Description
The current version of docker (Ubuntu 20.04 & 22.04) according to https://docs.docker.com/engine/install/ubuntu/ (Packages: docker-ce docker-ce-cli containerd.io) doesn't create the folder /etc/docker . I think this is a bug, because past versions have created this folder.
Reproduce
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
--> /etc/docker is missing
Expected behavior
/etc/docker is existing
docker version
Client: Docker Engine - Community Version: 23.0.0 API version: 1.42 Go version: go1.19.5 Git commit: e92dd87 Built: Wed Feb 1 17:49:08 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 23.0.0 API version: 1.42 (minimum version 1.12) Go version: go1.19.5 Git commit: d7573ab Built: Wed Feb 1 17:49:08 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.16 GitCommit: 31aa4358a36870b21a992d3ad2bef29e1d693bec runc: Version: 1.1.4 GitCommit: v1.1.4-0-g5fd4c4d docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: