HScarb commented on issue #4117:
URL: https://github.com/apache/rocketmq/issues/4117#issuecomment-1090418297
```
docker run -d --name huigenamesrv -p 9876:9876 -v
namesrv:/home/rocketmq/logs apache/rocketmq:4.9.2 sh mqnamesrv
```
As you are not using absolute after `-v`, docker will create a volume named
namesrv for you.
You can use `docker inspect namesrv` to inspect the detail of this volume.
It probably returns
```json
"Mounts": [
{
"Type": "volume",
"Name": "namesrv",
"Source": "/var/lib/docker/volumes/namesrv/_data",
"Destination": "/home/rocketmq/logs",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
```
Find logs in Source location
Reference:
https://docs.docker.com/storage/volumes/#start-a-container-with-a-volume
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]