09-14-2021 07:55 AM
Hi,
My Docker ports and status isn't working well. It doesn't publish ports and status always exit.
I've used these commands:
docker build -t sample-app-image .
docker run -d -P sample-app-image
docker run -d -p 8080:80 --name pythontest sample-app-image
Dockerfile:
FROM python
WORKDIR /home/ubuntu
COPY ./sample-app.py /home/ubuntu/.
RUN pip install flask
CMD python /home/ubuntu/sample-app.py
EXPOSE 8080
Solved! Go to Solution.
09-14-2021 11:56 AM
09-14-2021 08:00 AM
@KathleenDelosSantos38952 it looks like you are following the devnet fundamentals course? I would post this question to get support here --> https://learningnetwork.cisco.com/s/topic/0TO3i0000008jY5GAI/devnet-certifications-community
Hope this helps.
09-14-2021 08:06 AM
Thank you, Sir.
09-14-2021 11:56 AM
Hello DevNet community,
I've already know the answer. Keep safe.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide