spujadas / lighttpd-docker

Docker image for lighttpd, a secure, fast, compliant, and flexible web server
MIT License
59 stars 65 forks source link

docker run with -t #12

Closed carmineyiu closed 4 years ago

carmineyiu commented 4 years ago

when i change docker run -d to -t in your README, the command prompt does not run. does it -it and add sh if I want to return an command prompt for login to container?

spujadas commented 4 years ago

Yes, if you start a container like this:

docker run --rm -d -t -v $(pwd):/var/www/localhost/htdocs -p 80:80 sebp/lighttpd

Then you can get a shell prompt in the container like this:

docker exec -it <container-name> /bin/sh

(Closing as not actually an issue with the image, but feel free to comment if unclear.)