Docker

From SME Server
Jump to navigation Jump to search
Warning.png Work in Progress:
This page is a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.


Placeholder for anything to do with Docker (https://docker.com)

See: http://forums.contribs.org/index.php?topic=51095.new#new


Important.png Note:
All info is based on SME Server 9 only!


Installation

We will 'abuse' SME Server as a host for Docker for now. Once there is a basic SME Server image the it's time to setup a regular Centos box that will run docker and hosts many happy SME Server containers ;-)

  • Enable the EPEL repository

yum install docker

yum install docker-io --enablerepo=epel
service docker start

and then

docker

to see the available command line options

Docker notes

Templated /etc/sysconfig/docker based on below db settings

/etc/sysconfig/docker:

-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock
127.0.0.1 (localhost) or 0.0.0.0 (public) based on db key shipyard Access
docker=service
access=public
status=enabled

Shipyard

Shipyard is a separate GUI project hosted on Github. It will allow you to manage Docker instances and images from your browser. It is not required to use and run Docker containers, for all Docker commands can be issued from the command line.

Loose notes:

shipyard=service
TCPPort=4243
access=public
status=enabled

Shipyard agent

Loose notes

shipyard-agent=service
TCPPort=8000;4500
access=public
status=enabled

Things to do

  • Create link to appropriate run level to auto start docker
  • Get the shipyard GUI going
  • A LOT more ;-)