- Enable the "Extras" Red Hat channel so you can install Docker ...
#subscription-manager repos --enable rhel-7-server-extras-rpms
- Make sure to enable the docker service...
# systemctl enable docker
- ... and that it can be run as the apache user (this may be dropped as the code matures)
# usermod -aG docker apache
- Deal with SElinux (this may be dropped as the code matures)
# echo "OPTIONS=--selinux-enabled -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock" >> /etc/sysconfig/docker
- Finally, start the docker service
- Test that Docker is working (you should see a similar output as shown below):
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- Obtain a valid Docker image (use busybox for a fairly small and fast download; I chose to use fedora/ssh for this)
- Create a new "Docker" Compute Resource and use "http://localhost:2375" for its URL
- The Test Connection button shows a spinner icon but no confirmation message is displayed to tell you whether things look ok or now
![New Compute Resource](https://camo.githubusercontent.com/546fa7959124e76d401e2fee7427666196eb61b0e2e5bb798a3f5e6638a67075/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f646f636b65725f636f6d707574655f7265736f757263652e706e67)
- To create a new container, click the Containers and New container menus, and select the Docker compute resource you created before
![Step1](https://camo.githubusercontent.com/c71a191b13ca37425b5bada07e1b328752150aa0274033d8af9ee3f17c71ded3/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f6e65775f636f6e7461696e65725f73746570312e706e67)
- Type fedora/ssh (case matters) in the search field and latest in the Tag field
- NOTE: for some reason, it wasn't until I manually started a container manually with
docker run --name myfedora -t fedora/ssh:latest
that this part of the process verified that fedora/ssh was a valid entry by showing a green check mark.
![Step2](https://camo.githubusercontent.com/0c9b81303b3e4b0221a6aefd955aaf66337d796657c7bd7c9ecc26885896c67e/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f6e65775f636f6e7461696e65725f73746570322e706e67)
- Type a name for your container...
![Step3](https://camo.githubusercontent.com/3817a8d768ea5f97f2762e18ca32158fd8629f9c453f9b4da525dd1ddf042ae8/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f6e65775f636f6e7461696e65725f73746570332e706e67)
- Click the TTY checkbox...
![Step4](https://camo.githubusercontent.com/87d06fdbe277d10bd2871740bbca1776b15d7d154555fe13955819c9b3d659f5/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f6e65775f636f6e7461696e65725f73746570342e706e67)
- ...and your new container is ready to be started
![New Container](https://camo.githubusercontent.com/e076d7f4cabc0e4e9f0169b12e641b9c15ffacef3b61d219027b88b1185091b3/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f6e65775f636f6e7461696e65725f73746f707065642e706e67)
![Running](https://camo.githubusercontent.com/bea1dceda8edd4640ed254b931a925703ff571bb2e3bf7f1fb6c90e18f2a8153/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f6e65775f636f6e7461696e65725f737461727465642e706e67)
- You can see your container by going to the All containers submenu under the Containers menu.
![All containers](https://camo.githubusercontent.com/a0293e7c2422d1d53ffdf080a0d61b99f12944a7335c1f3086137951d5aa43ec/68747470733a2f2f6f6d616369656c2e6665646f726170656f706c652e6f72672f616c6c5f636f6e7461696e6572732e706e67)
On RHEL6
Same message on RHEL6 too:
Could not load host key: /etc/ssh/ssh_host_ecdsa_key