Sign inSign up

fayehuang/centos-http

By fayehuang

•Updated almost 11 years ago

Image
0

1.7K

fayehuang/centos-http repository overview

⁠docker-centos-http

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

⁠Run containe. The default root password is changeme
docker run -d -p 2222:22 -p 8080:80 fayehuang/centos
⁠ssh to container
ssh localhost -p 2222
root@localhost's password: changeme
⁠browse container httpd home page

open browser. enter the URL : http://localhost:8080⁠

Tag summary

Content type

Image

Digest

sha256:e274dee36…

Size

130.2 MB

Last updated

almost 11 years ago

docker pull fayehuang/centos-http