1. The purpose of this post

Sometimes, when you change the docker’s home directory, you would encounter this error when using docker commands:

preparing harbor configs ...
prepare base dir is set to /export/home/tools/harbor
docker: Error response from daemon: OCI runtime create failed: /var/lib/docker/overlay2/1292030861cff5f367a88f91b86d69f5779c210b4e626c55e6fa52e5b424d0fa/merged is not an absolute path or is a symlink: unknown.

2. Environments

  • docker 19

3. The solution

systemctl daemon-reload

Now everything works fine.