gpt4 book ai didi

Docker:错误抓取日志:无效字符 '\x00' 寻找值的开头

转载 作者:IT老高 更新时间:2023-10-28 21:40:34 51 4
gpt4 key购买 nike

我将我的 Docker 版本升级到最新版本,但出现此错误:

error from daemon in stream: Error grabbing logs: invalid character '\x00' looking for beginning of value

我无法使用以下方式读取日志:

docker-compose logs -f myservice

也不是:

docker logs -f 6f454c73ff9c

Docker 版本的输出:

Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:18 2017
OS/Arch: linux/amd64

Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:40:56 2017
OS/Arch: linux/amd64
Experimental: false

Docker 信息的输出:

Containers: 11
Running: 11
Paused: 0
Stopped: 0
Images: 8
Server Version: 17.09.0-ce
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 76
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.4.0-97-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.695GiB
Name: egmintel-desktop
ID: VB22:IXWI:GY6D:QPM4:SPHX:HYUP:OQN7:ZM55:LLKE:P3UU:XK7F:26TH
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support
My docker-compose version:
docker-compose version 1.16.1, build 6d1ac21

我还注意到我的一个容器工作不正常(但我看不到错误,因为我无法读取日志),我需要重新启动 Docker 服务,以便我的容器重新开始工作。

任何想法如何解决这个问题?谢谢!

最佳答案

只需删除 ~/.docker/目录

关于Docker:错误抓取日志:无效字符 '\x00' 寻找值的开头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46843711/

51 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com