A repository of simple docker images for teaching purposes. Installation instructions are for Amazon Linux EC2, and are stolen directly from https://gist.github.com/npearce/6f3c7826c7499587f00957fee62f8ee9. Everything else in this repository is based off of the "Docker for Developers" course on educative.io by Arnaud Weil. Anything good in this repository is blatantly stolen from Arnaud Weil's course. Anything bad is due to gremlins altering my code in the night. Note that as of this commit, yum works just fine, no need to involve the amazon-linux-extras package manager.
First we need install docker. Run the following commands:
- sudo yum update
- sudo yum install docker
- sudo service docker start
- sudo usermod -a -G docker ec2-user
- sudo chkconfig docker on
- sudo reboot
We ran the commands because:
- This is just generally a safe practice before any installation.
- Obvious.
- Start the docker service.
- Add ec2-user to the docker group to avoid any permission issues.
- Makes docker service launch on start up.
- Reboot to verify it all runs fine on it's own.
You will also need git to use the docker auto-building feature. So if it isn't already installed:
- sudo yum install git
- git config --global user.name "username"
- git config --global user.email "email@website"