Problem following the docker instructions #6

Closed
opened 2023-09-18 01:27:55 +00:00 by chiwalfrm · 1 comment

Hi I went through all the steps and the last step had an error. It's a new install of Ubuntu 22.04.3 LTS server and the only command is "sudo snap install docker" to install docker before getting into your README steps.

root@fastapidls:/opt/docker/fastapi-dls/cert# docker volume create dls-db
dls-db
root@fastapidls:/opt/docker/fastapi-dls/cert# docker run -e DLS_URL=hostname -i -e DLS_PORT=443 -p 443:443 -v $WORKING_DIR:/app/cert -v dls-db:/app/database collinwebdesigns/fastapi-dls:latest
docker: Error response from daemon: error while creating mount source path '/opt/docker/fastapi-dls/cert': mkdir /opt/docker: read-only file system.
ERRO[0000] error waiting for container: context canceled

Hi I went through all the steps and the last step had an error. It's a new install of Ubuntu 22.04.3 LTS server and the only command is "sudo snap install docker" to install docker before getting into your README steps. root@fastapidls:/opt/docker/fastapi-dls/cert# docker volume create dls-db dls-db root@fastapidls:/opt/docker/fastapi-dls/cert# docker run -e DLS_URL=`hostname -i` -e DLS_PORT=443 -p 443:443 -v $WORKING_DIR:/app/cert -v dls-db:/app/database collinwebdesigns/fastapi-dls:latest docker: Error response from daemon: error while creating mount source path '/opt/docker/fastapi-dls/cert': mkdir /opt/docker: read-only file system. ERRO[0000] error waiting for container: context canceled
Author

UPDATE: it is because docker when installed via snap only has access to the user's home directory. Changing WORKING_DIR=/home/vmware/fastapi-dls
fixed it

source: https://stackoverflow.com/questions/45764477/docker-compose-error-while-creating-mount-source-path

UPDATE: it is because docker when installed via snap only has access to the user's home directory. Changing WORKING_DIR=/home/vmware/fastapi-dls fixed it source: https://stackoverflow.com/questions/45764477/docker-compose-error-while-creating-mount-source-path
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: oscar.krause/fastapi-dls#6
No description provided.