Skip to content

Instantly share code, notes, and snippets.

@deoren
Created February 24, 2018 06:23
Show Gist options
  • Save deoren/475084bc7de08bde90aa340084d755f6 to your computer and use it in GitHub Desktop.
Save deoren/475084bc7de08bde90aa340084d755f6 to your computer and use it in GitHub Desktop.
Docker - Prep Ubuntu 16.04 container for testing

Docker: Ubuntu 16.04 container for testing

These notes are mainly for prepping a container for rsyslog testing, but generic enough to use as a basic Ubuntu 16.04 base

  1. sudo docker pull ubuntu:16.04
  2. sudo docker run -ti -p 2222:22 ubuntu:16.04
  3. apt-get update
  4. apt-get install software-properties-common
  5. apt-add-repository ppa:adiscon/v8-stable
  6. apt-get update
  7. apt-get install subversion git-core python2.7 tmux nano
  8. apt-get install openssh-client openssh-server
  9. apt-get install rsyslog rsyslog-relp rsyslog-omstdout rsyslog-mmjsonparse rsyslog-mmnormalize rsyslog-imptcp
  10. chown -R syslog /var/log/
  11. service rsyslog restart
@deoren
Copy link
Author

deoren commented Feb 24, 2018

As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!

@deoren
Copy link
Author

deoren commented Feb 26, 2018

Evidently a bit more is needed to setup openssh-server in a container:

https://docs.docker.com/engine/examples/running_ssh_service/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment