Docker Community Forums

Share and learn in the Docker community.

Unable to run application on port

Hi I have below docker file.

FROM continuumio/miniconda3
LABEL maintainer=“https://github.ibm.com/security-think-tank/ara_nist

WORKDIR /code
COPY . /code

RUN conda env create -f=environment.yml
RUN /bin/bash -c “source /opt/conda/etc/profile.d/conda.sh &&
conda activate aranist &&
source /code/environment.sh”

EXPOSE 9175
ENTRYPOINT [ “/bin/bash” , “-c” ]

===============

docker run -p 9175:9175 myimage ‘source /code/run_aranist.sh’

============================
when i run above command getting below output, but still my application is not running on 9175 port

PS C:\Users\MaheshSathe\Desktop\devops> docker run -p 8175:8175 --name=app1 myimage /bin/bash: -c: option requires an argument
PS C:\Users\MaheshSathe\Desktop\devops> docker run -p 9175:9175 myimage ‘source /code/run_aranist.sh’
INFO: Uvicorn running on http://127.0.0.1:9175 (Press CTRL+C to quit)
INFO: Started reloader process [56]
INFO: Started server process [58]
INFO: Waiting for application startup.
INFO: Application startup complete.