Docker image with nginx and sshd installed and running by default.
874
You can find all of the files used to build this image here:
https://github.com/iliyan-trifonov/docker-nginx-sshd
You can start it like an app with this command:
docker run -d -name dockerserver iliyan/nginxserver
find which ip is given to it:
docker inspect dockerserver
see if the sshd and nginx procs are running:
docker top dockerserver
and:
docker logs dockerserver
connect to the container while the nginx server is in the foreground (for example if inspect gave you 172.17.0.5):
ssh [email protected] say yes to the fingerprint use password: root
remove the fingerprint if you rebuild the container:
ssh-keygen -f "/root/.ssh/known_hosts" -R 172.17.0.5
Now you have full root ssh/sftp access to the container and can change the nginx configuration, install more software, upload a site or for more options: link (with docker) another container to this one, use data volumes and port forwarding.
Content type
Image
Digest
sha256:ffcdda8b0…
Size
87.2 MB
Last updated
almost 11 years ago
docker pull iliyan/nginxserver