Phiroz
2017-09-27 09:57:11 UTC
hi,
first off i would like to thank anyone for any help.
i'm still new to docker, so i'm learning this as i go.
i'm using the Docker version 17.06.2-ce, build cec0b72
mayanedms image : 2.7.3.
host is ubuntu 16.04
i'm trying connect to the mysql DB running on the host,
so i'm using these options
i have an a file with the environment variables
inside mayan_edms_env
MAYAN_DATABASE_DRIVER=django.db.backends.mysql
MAYAN_DATABASE_NAME=mayan_edms
MAYAN_DATABASE_USER=mayan
MAYAN_DATABASE_PASSWORD=12345
MAYAN_DATABASE_HOST=localhost
--env-file=/home/user/mayan_edms_env (to pass in the environment variables)
-v /var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock (to map the
mysql socket in host to container)
full command:
docker run -d --name mayan-edms --env-file=/home/user/mayan_edms_env
--restart=always -p 8000:80 -v mayan_media:/var/lib/mayan -v
/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock
mayanedms/mayanedms:2.7.3
unfortunately when i run the above
docker ps
it keeps showing status restarting.
when i tried this it has no issues.
docker run -d ---env-file=/home/user/mayan_edms_env -v
/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock
mayanedms/mayanedms:2.7.3 ( this command was able to connect to the sql, as
it created the tables in the database)
docker run -d --name mayan-edms --restart=always -p 8000:80 -v
mayan_media:/var/lib/mayan mayanedms/mayanedms:2.7.3
i'm hoping someone can point me where i messed up.
thanks for any help/hints/things to check.
first off i would like to thank anyone for any help.
i'm still new to docker, so i'm learning this as i go.
i'm using the Docker version 17.06.2-ce, build cec0b72
mayanedms image : 2.7.3.
host is ubuntu 16.04
i'm trying connect to the mysql DB running on the host,
so i'm using these options
i have an a file with the environment variables
inside mayan_edms_env
MAYAN_DATABASE_DRIVER=django.db.backends.mysql
MAYAN_DATABASE_NAME=mayan_edms
MAYAN_DATABASE_USER=mayan
MAYAN_DATABASE_PASSWORD=12345
MAYAN_DATABASE_HOST=localhost
--env-file=/home/user/mayan_edms_env (to pass in the environment variables)
-v /var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock (to map the
mysql socket in host to container)
full command:
docker run -d --name mayan-edms --env-file=/home/user/mayan_edms_env
--restart=always -p 8000:80 -v mayan_media:/var/lib/mayan -v
/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock
mayanedms/mayanedms:2.7.3
unfortunately when i run the above
docker ps
it keeps showing status restarting.
when i tried this it has no issues.
docker run -d ---env-file=/home/user/mayan_edms_env -v
/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock
mayanedms/mayanedms:2.7.3 ( this command was able to connect to the sql, as
it created the tables in the database)
docker run -d --name mayan-edms --restart=always -p 8000:80 -v
mayan_media:/var/lib/mayan mayanedms/mayanedms:2.7.3
i'm hoping someone can point me where i messed up.
thanks for any help/hints/things to check.
--
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.