Sign inSign up

launchfuture/debian11_ssh_nginx

By launchfuture

Updated almost 2 years ago

Debian 11 Docker Image with OpenSSH and Nginx

Image
Web servers
Operating systems
0

871

launchfuture/debian11_ssh_nginx repository overview

Debian 11 Docker Image with OpenSSH and Nginx

This Docker image, named debian11_nginx_ssh, is based on Debian 11 and includes OpenSSH and Nginx services. It is configured to allow SSH root login with password authentication enabled.

Usage

To start a container from this image with SSH and Nginx running, use:

docker run -d --name my_debian11_container -p 8080:80 -p 8022:22 debian11_ssh_nginx
  • Ports Exposed: 22 (SSH) and 80 (Nginx).

  • SSH Access: Connect to the container with:

    ssh root@localhost -p 8022
    

    Replace localhost with the appropriate IP address if connecting remotely.

  • Default Root Password: The default password for root is yourpassword. Be sure to change this password in a production environment.

Data Persistence

To ensure data persists beyond container lifecycles, you can mount volumes or directories on the host machine. For example:

docker run -d -p 8080:80 -p 8022:22 \
  -v my_nginx_data:/var/www/html \
  -v my_nginx_logs:/var/log/nginx \
  debian11_ssh_nginx

This will store website data in my_nginx_data and logs in my_nginx_logs, making them accessible even if the container is removed.

Tag summary

Content type

Image

Digest

sha256:486dfd6f5

Size

121.4 MB

Last updated

almost 2 years ago

docker pull launchfuture/debian11_ssh_nginx