I created a docker image based on nginx and included the config in the image it self.
ThenI start the container (docker run -p 2000:80 nginx_be:0.1
).
When I don't check for running containers with docker ps
there are none.
What am I missing?
My Dockerfile
FROM nginx
ADD /conf/nginx.conf /etc/nginx/nginx.conf:ro
WORKDIR /etc/nginx
EXPOSE 80
CMD ["nginx", "-c", "/etc/nginx/nginx.conf"]