Closed tkojames24 closed 7 years ago
Some logs would be helpful. docker logs whateveryoucalledcrypt
Below is the docker logs. I think the issue might be the following error, "django.db.utils.OperationalError: unable to open database file" Do I have to set certain permissions for the db folder I create on the host maybe?
Traceback (most recent call last):
File "manage.py", line 10, in
106 static files copied to '/home/docker/crypt/static'.
Traceback (most recent call last):
File "manage.py", line 10, in
It doesn't even look like you connected the containers together. Please post the exact commands you issued.
This are the commands I ran. Thank you for the help on this. I am hoping to get this to work as it would work perfectly for my needs.
sudo docker run -d --name="Crypt" \
--restart="always" \ -v /home/user/crypt:/home/docker/crypt/keyset \ -v /home/user/crypt:/home/docker/crypt/crypt.db \ -p 8000:8000 \ macadmins/crypt-server
Your volumes are wrong. You've linked the same directory on the host to a directory and a flat file.
More like:
sudo docker run -d --name="Crypt" \
--restart="always" \
-v /home/user/crypt/keyset:/home/docker/crypt/keyset \
-v /home/user/crypt/crypt.db:/home/docker/crypt/crypt.db \
-p 8000:8000 \
macadmins/crypt-server
Plus you are Yolo-ing the latest. I suggest strongly using a tagged release.
I am using the docker image macadmins/crypt-server. I am using Centos 7 and ubuntu as my docker host. I have tired this in multiple VMs and a local machine. When I visit localhost:8000 I get 502 Bad Gateway error. Is there anything I need to do to fix this? I am following the docker setup information.