Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

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

Docker Pull Command
Owner
fayehuang
Source Repository