Skip to content

MD Express error when starting from within a docker  #92

@AHarouni

Description

@AHarouni

I can start and run MD Express from a local host. However I get an error from docker compose not finding files when I try to run MD express through a docker in docker after exposing the socket
-v /var/run/docker.sock:/var/run/docker.sock

it seems like MD express launches dockers of its own as I get error trying to look for config files that are there on host but are mounted in different directory in the docker

Work around:
I map the host dir to exactly the same as is into the docker as
-v /home/harouni/demos/MDExpress:/home/harouni/demos/MDExpress

Proposed solution
we can add a variable in the .env file as HOST_PATH which would be defaulted to $PWD but I can then change to read from an environment variable as
-e HOST_PATH=/home/harouni/demos/MDExpress
That way you can launch the sub dockers using this variable HOST_PATH

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions