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=“

COPY . /code

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

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


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

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/’
INFO: Uvicorn running on (Press CTRL+C to quit)
INFO: Started reloader process [56]
INFO: Started server process [58]
INFO: Waiting for application startup.
INFO: Application startup complete.