base on fayehuang/centos. Using supervisor to run multiple processes (sshd & httpd)
####Setting supervisord.conf
[supervisord]
nodaemon=true
logfile=/tmp/supervisord.log
pidfile=/tmp/supervisord.pid
[program:sshd]
command=/root/ssh_init.sh
[program:httpd]
command=/usr/sbin/httpd -D FOREGROUND
docker run -d -p 2222:22 -p 8080:80 fayehuang/centos
ssh localhost -p 2222
root@localhost's password: changeme
open browser. enter the URL : http://localhost:8080
Content type
Image
Digest
sha256:e274dee36…
Size
130.2 MB
Last updated
almost 11 years ago
docker pull fayehuang/centos-http