docker / docker/docker-install
[Docker Rootless] dockerd can't find 'config.json'
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.2k
- Forks
- 863
- Avg merge
- 3h 15m
- Merged PRs (30d)
- 2
Description
Hi all,
The rootless mode work fine but i have a this error message in the 'daemon.log' every minute
No config file found, using default or config from environment variables
My "config.json" is in my local user repertory : /home/omdocker/.docker.
It can read the context : docker context ls
I have done a export DOCKER_CONFIG=~/.docker and restart docker, but the error are still here.
Any clue ?
Thx
Docker info :
dockerClient:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
Server:
Containers: 22
Running: 20
Paused: 0
Stopped: 2
Images: 22
Server Version: 20.10.21
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: false
userxattr: true
Logging Driver: syslog
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 1c90a442489720eec95342e1789ee8a5e1b9536f
runc version: v1.1.4-0-g5fd4c4d1
init version: de40ad0
Security Options:
seccomp
Profile: default
rootless
cgroupns
Kernel Version: 5.19.0-0.deb11.2-amd64
Operating System: Debian GNU/Linux 11 (bullseye)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.425GiB
Name: omv
ID: POM6:7XYU:7NNC:IXDD:OM4V:J4IY:RG6T:PHC5:6YQJ:6P3D:MALN:QVKB
Docker Root Dir: /srv/dev-disk-by-uuid-51836ffa-b9bc-4714-bff8-8d975484a54b/docker/data
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: true
Product License: Community Engine
systemctl --user status docker
● docker.service - Docker Application Container Engine (Rootless)
Loaded: loaded (/home/omdocker/.config/systemd/user/docker.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-11-17 22:05:42 CET; 1h 13min ago
Docs: https://docs.docker.com/go/rootless/
Main PID: 575466 (rootlesskit)
Tasks: 583
Memory: 675.0M
CPU: 2min 49.151s
CGroup: /user.slice/user-1003.slice/user@1003.service/app.slice/docker.service
├─575466 rootlesskit --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=/et>
├─575482 /proc/self/exe --net=slirp4netns --mtu=65520 --slirp4netns-sandbox=auto --slirp4netns-seccomp=auto --disable-host-loopback --port-driver=builtin --copy-up=>
├─575500 slirp4netns --mtu 65520 -r 3 --disable-host-loopback --enable-sandbox --enable-seccomp 575482 tap0
├─575508 dockerd
├─575525 containerd --config /run/user/1003/docker/containerd/containerd.toml --log-level info
....
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the rootless systemd service shown in the report and inspect daemon.log alongside DOCKER_CONFIG and /home/omdocker/.docker/config.json. Confirm which component emits the message and define done as a reproducible diagnosis with a verified correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100