/docker-centos-supervisord

Docker with supervisord, httpd on Vagrant (not docker provider)

Primary LanguageShellMIT LicenseMIT

docker-centos-supervisord

Docker container with supervisord, rsyslogd, crond, sshd on CentOS by Vagrant (not docker provider)

Build and Run container

vagrant up and vagrant ssh,

$ docker ps
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS              PORTS                    NAMES
6e1af309faee        centos:spvsd        /usr/bin/supervisord   4 seconds ago       Up 3 seconds        0.0.0.0:2222->22/tcp     kickass_mccarthy

SSH into container

from Vagrant

# ssh into Vagrant from local
$ vagrant ssh

# confirm container IP Address
$ docker inspect 6e1af309faee | grep IPAddress
        "IPAddress": "172.17.0.2",

# ssh into container
$ ssh appuser@172.17.0.2 # password: appuser

from Local

# ssh into container
$ ssh appuser@192.168.33.10 -p 2222 # password: appuser