Docker Community Forums

Share and learn in the Docker community.

Docker image cant run from docker hub


(Rammsuresh) #1

Hi All, please help me to resolve the issue,

I have created docker image as per document, I have run it local and able to browse.
But I have push the image to docker hub, then directly try to run the image from docker hub.
using docker run -p 4000:80 username/repo:tag.
But I receive 1#1: “server” directive is not allowed here in /etc/nginx.conf:1