Public | Automated Build

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


A Dockerfile to build a sshd service with supervisord on latest CentOS Container


  • paste your public key to authorized_keys

    cat ~/.ssh/ >> authorized_keys
  • Build

    docker build --no-cache --rm -t local/centos .
  • RUN container

    ID=$(docker run -i -t -d -p 22 local/centos)
  • Login to your container

    ssh localhost -p `docker port $ID 22 | cut -d":" -f2`

Root password is root


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Docker Pull Command
Source Repository