You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for producing a docker container for librenms! I was testing this out last night and I've found that the use of relative paths in the docker run command end up creating a directory instead of a file.
Running this command:
docker run -d -m 1g
-v pwd/mysql:/var/lib/mysql
-v pwd/50-server.cnf:/etc/mysql/mariadb.conf.d/50-server.cnf:ro
-e MYSQL_ROOT_PASSWORD=pwd4librenms
--name librenms-db
mariadb:latest
Creates 50-server.cnf as directory, instead of a folder.
Modifying the command to specify the full path results in 50-server.cnf being created as a file, as I believe is intended.
If you use -v or --volume to bind-mount a file or directory that does not yet exist on the Docker host, -v will create the endpoint for you. It is always created as a directory.
I'm not sure if there is a way around this when 50-server.cnf does not exist.
Thank you for producing a docker container for librenms! I was testing this out last night and I've found that the use of relative paths in the docker run command end up creating a directory instead of a file.
Running this command:
docker run -d -m 1g
-v
pwd
/mysql:/var/lib/mysql-v
pwd
/50-server.cnf:/etc/mysql/mariadb.conf.d/50-server.cnf:ro-e MYSQL_ROOT_PASSWORD=pwd4librenms
--name librenms-db
mariadb:latest
Creates 50-server.cnf as directory, instead of a folder.
Modifying the command to specify the full path results in 50-server.cnf being created as a file, as I believe is intended.
I found useful information in this post:
moby/moby#24408
The text was updated successfully, but these errors were encountered: