Public bug reported:
# Environment:
$ lsb_release -rd
Description: Ubuntu 20.10
Release: 20.10
$ uname -a
Linux megatron 5.8.0-63-generic #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021
x86_64 x86_64 x86_64 GNU/Linux
$ docker --version
Docker version 20.10.2, build 20.10.2-0ubuntu1~20.10.1
$ apt-cache policy docker.io
docker.io:
Installed: 20.10.2-0ubuntu1~20.10.1
Candidate: 20.10.2-0ubuntu1~20.10.1
Version table:
*** 20.10.2-0ubuntu1~20.10.1 500
500 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu
groovy-updates/universe amd64 Packages
100 /var/lib/dpkg/status
19.03.13-0ubuntu3 500
500 https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu
groovy/universe amd64 Packages
# Symptoms
When I use 'docker build' command to make a docker image, it starts a
container. But it comes with no log with that container.
$ sudo docker logs -f ad58bfd83a8f
Error response from daemon: configured logging driver does not support reading
I tried to start a container by command 'docker run', and it does have log.
There's no extra configuration in `/etc/docker` directory.
$ ls /etc/docker
certs.d key.json
Also I tried to check logconfig of each container and system-wide:
$ sudo docker info --format '{{.LoggingDriver}}'
json-file
$ sudo docker inspect -f '{{.HostConfig.LogConfig}}' 4ee82fd32c33
{json-file map[]}
$ sudo docker inspect -f '{{.HostConfig.LogConfig}}' ad58bfd83a8f
{none map[]}
$ sudo docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
4ee82fd32c33 67b19b161736 "sh" 16 minutes ago Up 16
minutes cool_chebyshev
ad58bfd83a8f 67b19b161736 "/bin/sh -c 'rm -fr …" 24 minutes ago Exited
(2) 18 minutes ago wizardly_mestorf
=======
container `4ee82fd32c33` is running from `docker run`
container `ad58bfd83a8f` is running from `docker build`
** Affects: docker.io (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1966889
Title:
docker-build containers do not have logging driver configure
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1966889/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs