Follow the steps below,
-
Create a Docker volume for managing data persistence by issuing the host shell command below:
docker volume create agent-log
-
To initialize data in this volume, issue the host shell command below,
docker run --user root --rm -ti -v agent-log:/tmp/agent-log alpine /bin/sh -c "chown -R 100:101 /tmp/agent-log; chmod -R 755 /tmp/agent-log"