cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1554
Views
5
Helpful
3
Replies

DevNet: Application Deployment and Security(Docker Container)

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

 

Capture2.JPGCapture.JPG

1 Accepted Solution

Accepted Solutions

Hello DevNet community,

 

I've already know the answer. Keep safe.

View solution in original post

3 Replies 3

@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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thank you, Sir.

Hello DevNet community,

 

I've already know the answer. Keep safe.