2014-04-15 20:53:12 -04:00
|
|
|
page_title: Installation on CRUX Linux
|
|
|
|
page_description: Docker installation on CRUX Linux.
|
|
|
|
page_keywords: crux linux, virtualization, Docker, documentation, installation
|
|
|
|
|
|
|
|
# CRUX Linux
|
|
|
|
|
|
|
|
Installing on CRUX Linux can be handled via the ports from [James
|
2014-05-23 11:18:00 -04:00
|
|
|
Mills](http://prologic.shortcircuit.net.au/) and are included in the
|
|
|
|
official [contrib](http://crux.nu/portdb/?a=repo&q=contrib) ports:
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
- docker
|
|
|
|
- docker-bin
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
The `docker` port will install the latest tagged
|
|
|
|
version of Docker. The `docker-bin` port will
|
2014-05-23 11:18:00 -04:00
|
|
|
install the latest tagged version of Docker from upstream built binaries.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
Assuming you have contrib enabled, update your ports tree and install docker (*as root*):
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
# prt-get depinst docker
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
You can install `docker-bin` instead if you wish to avoid compilation time.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
|
|
|
|
## Kernel Requirements
|
|
|
|
|
|
|
|
To have a working **CRUX+Docker** Host you must ensure your Kernel has
|
|
|
|
the necessary modules enabled for LXC containers to function correctly
|
|
|
|
and Docker Daemon to work properly.
|
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
Please read the `README`:
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-01 10:13:34 -04:00
|
|
|
$ prt-get readme docker
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
The `docker` and `docker-bin` ports install the `contrib/check-config.sh`
|
|
|
|
script provided by the Docker contributors for checking your kernel
|
|
|
|
configuration as a suitable Docker Host.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
$ /usr/share/docker/check-config.sh
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
## Starting Docker
|
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
There is a rc script created for Docker. To start the Docker service (*as root*):
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
# /etc/rc.d/docker start
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
To start on system boot:
|
|
|
|
|
2014-04-23 16:48:28 -04:00
|
|
|
- Edit `/etc/rc.conf`
|
|
|
|
- Put `docker` into the `SERVICES=(...)` array after `net`.
|
2014-05-23 11:18:00 -04:00
|
|
|
|
|
|
|
## Issues
|
|
|
|
|
|
|
|
If you have any issues please file a bug with the
|
|
|
|
[CRUX Bug Tracker](http://crux.nu/bugs/).
|
|
|
|
|
|
|
|
## Support
|
|
|
|
|
|
|
|
For support contact the [CRUX Mailing List](http://crux.nu/Main/MailingLists)
|
|
|
|
or join CRUX's [IRC Channels](http://crux.nu/Main/IrcChannels). on the
|
|
|
|
[FreeNode](http://freenode.net/) IRC Network.
|