-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
docker/cli
#1893Description
- This is a bug report
- This is a feature request
- I searched existing issues before opening this one
Expected behavior
docker logs -f can follow logs.
Actual behavior
(MoeLove) ➜ moby git:(master) ✗ docker logs -f 425624dd6665
1:C 16 May 2019 10:30:05.647 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 16 May 2019 10:30:05.647 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 16 May 2019 10:30:05.647 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 16 May 2019 10:30:05.650 * Running mode=standalone, port=6379.
1:M 16 May 2019 10:30:05.651 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 16 May 2019 10:30:05.651 # Server initialized
1:M 16 May 2019 10:30:05.651 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 16 May 2019 10:30:05.651 * Ready to accept connections
net/http: request canceled (Client.Timeout exceeded while reading body)
Steps to reproduce the behavior
(MoeLove) ➜ moby git:(master) ✗ docker run --rm -d redis
425624dd666502397efbbbf099b5ae282228c6d0e1f027170865733ee7ae3a7b
d%
(MoeLove) ➜ moby git:(master) ✗ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
425624dd6665 redis "docker-entrypoint.s…" 1 second ago Up 1 second 6379/tcp wizardly_lederberg
(MoeLove) ➜ moby git:(master) ✗ docker logs -f 425624dd6665
1:C 16 May 2019 10:30:05.647 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 16 May 2019 10:30:05.647 # Redis version=5.0.4, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 16 May 2019 10:30:05.647 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 16 May 2019 10:30:05.650 * Running mode=standalone, port=6379.
1:M 16 May 2019 10:30:05.651 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
1:M 16 May 2019 10:30:05.651 # Server initialized
1:M 16 May 2019 10:30:05.651 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
1:M 16 May 2019 10:30:05.651 * Ready to accept connections
net/http: request canceled (Client.Timeout exceeded while reading body)
Output of docker version:
(MoeLove) ➜ moby git:(master) ✗ docker version
Client: Docker Engine - Community
Version: 0.0.0-20190515050035-b274b68
API version: 1.40
Go version: go1.12.4
Git commit: b274b68
Built: Wed May 15 07:31:14 2019
OS/Arch: linux/amd64
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 0.0.0-20190515050035-b274b68
API version: 1.41 (minimum version 1.12)
Go version: go1.12.4
Git commit: b274b68
Built: Wed May 15 07:29:57 2019
OS/Arch: linux/amd64
Experimental: true
containerd:
Version: 1.2.5
GitCommit: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc:
Version: 1.0.0-rc7
GitCommit: 69ae5da6afdcaaf38285a10b36f362e41cb298d6
docker-init:
Version: 0.18.0
GitCommit: fec3683
Output of docker info:
(MoeLove) ➜ moby git:(master) ✗ docker info
Client:
Debug Mode: false
Plugins:
app: Docker Application (Docker Inc., v0.8.0-beta2)
buildx: Build with BuildKit (Docker Inc., v0.2.0-28-gcb83df7-tp)
Server:
Containers: 16
Running: 1
Paused: 0
Stopped: 15
Images: 224
Server Version: 0.0.0-20190515050035-b274b68
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: systemd
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: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: bb71b10fd8f58240ca47fbb579b9d1028eea7c84
runc version: 69ae5da6afdcaaf38285a10b36f362e41cb298d6
init version: fec3683
Security Options:
seccomp
Profile: default
Kernel Version: 5.0.11-100.fc28.x86_64
Operating System: Fedora 28 (Workstation Edition)
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.56GiB
Name: localhost.localdomain
ID: 23f7e031-5e53-4256-83ce-3238ad0d5ccc
Docker Root Dir: /var/lib/docker
Debug Mode: true
File Descriptors: 29
Goroutines: 42
System Time: 2019-05-16T18:33:51.659815118+08:00
EventsListeners: 0
HTTP Proxy: socks5://127.0.0.1:1081/
HTTPS Proxy: socks5://127.0.0.1:1081/
No Proxy: localhost,127.0.0.1,docker.io,yanzhe919.mirror.aliyuncs.com,99nkhzdo.mirror.aliyuncs.com,*.aliyuncs.com,*.mirror.aliyuncs.com,registry.docker-cn.com,hub.c.163.com,hub-auth.c.163.com,harbor-registry.inner.youdao.com,registry.corp.youdao.com
Username: taobeier
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Insecure Registries:
127.0.0.1:5000
127.0.0.0/8
Live Restore Enabled: true
Additional environment details (AWS, VirtualBox, physical, etc.)
On my laptop.
Fedora 28
Linux 5.0.11-100.fc28.x86_64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels