easyStudy question · answer published in Kubernetes interview questions, so no pointskubernetesdocker
What EXPOSE really does
A Dockerfile has `EXPOSE 8080`. You run the container with plain `docker run myimg` and cannot reach it on localhost:8080. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- Ordering Dockerfile steps for cachingDevOps Engineer
- Image vs containerDevOps Engineer
- Smallest unit in KubernetesDevOps Engineer
- Why use a .dockerignore fileDevOps Engineer
- Container exits right after startDevOps Engineer
- Deployment and ReplicaSetDevOps Engineer
- Logs from a crashed containerDevOps Engineer
- Are Kubernetes Secrets encryptedDevOps Engineer