docker Startup error:
Log/var/log/messages
tail -n 200 /var/log/messages
docker.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 8 10:12:11 hdss7-200 systemd: Failed to start Docker Application Container Engine.
Sep 8 10:12:11 hdss7-200 systemd: Unit docker.service entered failed state.
Sep 8 10:12:11 hdss7-200 systemd: docker.service failed.
Sep 8 10:12:13 hdss7-200 systemd: docker.service holdoff time over, scheduling restart.
Sep 8 10:12:13 hdss7-200 systemd: Stopped Docker Application Container Engine.
Sep 8 10:12:13 hdss7-200 systemd: Starting Docker Application Container Engine…
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.165283953+08:00” level=warning msg=“The “graph” config file option is deprecated. Please use “data-root” instead.”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.165505567+08:00” level=info msg=“Starting up”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.168553899+08:00” level=info msg=“parsed scheme: “unix”” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.168617586+08:00” level=info msg=“scheme “unix” not registered, fallback to default scheme” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.168660657+08:00” level=info msg=“ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.168686536+08:00” level=info msg=“ClientConn switching balancer to “pick_first”” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.171021101+08:00” level=info msg=“parsed scheme: “unix”” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.171075188+08:00” level=info msg=“scheme “unix” not registered, fallback to default scheme” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.171115224+08:00” level=info msg=“ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 }] }” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.171129951+08:00” level=info msg=“ClientConn switching balancer to “pick_first”” module=grpc
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.198222339+08:00” level=info msg=“Loading containers: start.”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.199003165+08:00” level=error msg=“failed to load container” container=5535e057d179bd9934787a4bf6335b2b16cc8ce66394d8079e7d9d26a35c1749 error=“open /data/docker/containers/5535e057d179bd9934787a4bf6335b2b16cc8ce66394d8079e7d9d26a35c1749/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.199224462+08:00” level=error msg=“failed to load container” container=108ae306d2bfa1f8a9daf16831904cd7ee0917d230ccfbc85eb83420bd9bc915 error=“open /data/docker/containers/108ae306d2bfa1f8a9daf16831904cd7ee0917d230ccfbc85eb83420bd9bc915/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.200071533+08:00” level=error msg=“failed to load container” container=3241e073c2ed6ba92bfb2420f7e6e8a974ed2650692a198b8f098a05aaa09838 error=“open /data/docker/containers/3241e073c2ed6ba92bfb2420f7e6e8a974ed2650692a198b8f098a05aaa09838/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.200144451+08:00” level=error msg=“failed to load container” container=39ea0b14ac334796b07451b77e2d7a25a9c86c3d82b62f424ab6af7e9ae07288 error=“open /data/docker/containers/39ea0b14ac334796b07451b77e2d7a25a9c86c3d82b62f424ab6af7e9ae07288/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.200210292+08:00” level=error msg=“failed to load container” container=61ef48f3191edfe1ed52f26a1a6f9d6e8dd349949fd140570942e31294613588 error=“open /data/docker/containers/61ef48f3191edfe1ed52f26a1a6f9d6e8dd349949fd140570942e31294613588/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.200551515+08:00” level=error msg=“failed to load container” container=8903e29023d7fb408ccda97838258b79d5f49d7c1f0d45f72c9e428c6075b60a error=“open /data/docker/containers/8903e29023d7fb408ccda97838258b79d5f49d7c1f0d45f72c9e428c6075b60a/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.200601149+08:00” level=error msg=“failed to load container” container=a9a77e3af76500a09c7d95569862834e164ff69a09c422591e4defabda1aff0f error=“open /data/docker/containers/a9a77e3af76500a09c7d95569862834e164ff69a09c422591e4defabda1aff0f/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.200675372+08:00” level=error msg=“failed to load container” container=4934377693aea996348c07bddebfaa950fdb4374968d7a364bf51f408ebdc357 error=“open /data/docker/containers/4934377693aea996348c07bddebfaa950fdb4374968d7a364bf51f408ebdc357/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: time=“2021-09-08T10:12:13.201257339+08:00” level=error msg=“failed to load container” container=d14487908117da6cc73d6c2d9fb67488ccc7f63a465cc1831db9d7ef3d25ce88 error=“open /data/docker/containers/d14487908117da6cc73d6c2d9fb67488ccc7f63a465cc1831db9d7ef3d25ce88/config.v2.json: no such file or directory”
Sep 8 10:12:13 hdss7-200 dockerd: panic: runtime error: invalid memory address or nil pointer dereference
Sep 8 10:12:13 hdss7-200 dockerd: [signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x557a613cfae4]
Sep 8 10:12:13 hdss7-200 dockerd: goroutine 103 [running]:
Sep 8 10:12:13 hdss7-200 dockerd: github.com/docker/docker/vendor/github.com/containerd/fifo.(*fifo).Close(0x0, 0x0, 0x0)
Sep 8 10:12:13 hdss7-200 dockerd: /root/rpmbuild/BUILD/src/engine/.gopath/src/github.com/docker/docker/vendor/github.com/containerd/fifo/fifo.go:208 +0x44
Sep 8 10:12:13 hdss7-200 dockerd: github.com/docker/docker/vendor/github.com/containerd/containerd/cio.(*cio).Close(0xc000b19740, 0xc000acd3a8, 0xc000702a58)
Sep 8 10:12:13 hdss7-200 dockerd: /root/rpmbuild/BUILD/src/engine/.gopath/src/github.com/docker/docker/vendor/github.com/containerd/containerd/cio/io.go:203 +0x90
Sep 8 10:12:13 hdss7-200 dockerd: github.com/docker/docker/libcontainerd/remote.(*client).Restore.func1(0xc000bdd040, 0xc000011e88)
Sep 8 10:12:13 hdss7-200 dockerd: /root/rpmbuild/BUILD/src/engine/.gopath/src/github.com/docker/docker/libcontainerd/remote/client.go:86 +0x5a
Sep 8 10:12:13 hdss7-200 dockerd: github.com/docker/docker/libcontainerd/remote.(*client).Restore(0xc0003fae00, 0x557a63914e08, 0xc000132020, 0xc000b1c200, 0x40, 0xc000bdd030, 0x557a00132d00, 0xffffffffffffffff, 0x0, 0x0, …)
Sep 8 10:12:13 hdss7-200 dockerd: /root/rpmbuild/BUILD/src/engine/.gopath/src/github.com/docker/docker/libcontainerd/remote/client.go:107 +0xa07
Sep 8 10:12:13 hdss7-200 dockerd: github.com/docker/docker/daemon.(*Daemon).restore.func3(0xc0007ea210, 0xc000051bd0, 0xc00000c1e0, 0xc0007ea200, 0xc0000e9080, 0xc0000e9050, 0xc0000e9020, 0xc000333180)
Sep 8 10:12:13 hdss7-200 dockerd: /root/rpmbuild/BUILD/src/engine/.gopath/src/github.com/docker/docker/daemon/daemon.go:351 +0x46d
Sep 8 10:12:13 hdss7-200 dockerd: created by github.com/docker/docker/daemon.(*Daemon).restore
Sep 8 10:12:13 hdss7-200 dockerd: /root/rpmbuild/BUILD/src/engine/.gopath/src/github.com/docker/docker/daemon/daemon.go:319 +0x4cf
Sep 8 10:12:13 hdss7-200 systemd: docker.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Sep 8 10:12:13 hdss7-200 systemd: Failed to start Docker Application Container Engine.
Sep 8 10:12:13 hdss7-200 systemd: Unit docker.service entered failed state.
Sep 8 10:12:13 hdss7-200 systemd: docker.service failed.
Error Message:
docker panic: runtime error: invalid memory address or nil pointer dereference
Delete the file in the path of ./data/docker will solve this error