2015-06-07 23:07:20 -04:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
2016-01-23 23:36:40 -05:00
|
|
|
aliases = [ "/engine/installation/cruxlinux/"]
|
2015-06-07 23:07:20 -04:00
|
|
|
title = "Installation on CRUX Linux"
|
|
|
|
description = "Docker installation on CRUX Linux."
|
2015-12-07 15:29:09 -05:00
|
|
|
keywords = ["crux linux, Docker, documentation, installation"]
|
2015-06-07 23:07:20 -04:00
|
|
|
[menu.main]
|
2016-01-23 23:36:40 -05:00
|
|
|
parent = "engine_linux"
|
2015-06-07 23:07:20 -04:00
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
# CRUX Linux
|
|
|
|
|
2016-08-12 17:13:20 -04:00
|
|
|
Installing on CRUX Linux can be done using the
|
2014-05-23 11:18:00 -04:00
|
|
|
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
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-11-22 00:40:39 -05:00
|
|
|
The `docker` port will build and install the latest tagged version of Docker.
|
|
|
|
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2015-04-29 15:51:57 -04:00
|
|
|
Assuming you have contrib enabled, update your ports tree and install docker:
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2015-04-29 15:51:57 -04:00
|
|
|
$ sudo prt-get depinst docker
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
|
2015-04-21 11:50:09 -04:00
|
|
|
## Kernel requirements
|
2014-04-15 20:53:12 -04:00
|
|
|
|
|
|
|
To have a working **CRUX+Docker** Host you must ensure your Kernel has
|
2014-11-22 00:40:39 -05:00
|
|
|
the necessary modules enabled for the Docker Daemon to function correctly.
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-05-23 11:18:00 -04:00
|
|
|
Please read the `README`:
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2015-04-29 15:51:57 -04:00
|
|
|
$ sudo prt-get readme docker
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2014-11-22 00:40:39 -05:00
|
|
|
The `docker` port installs the `contrib/check-config.sh` script
|
|
|
|
provided by the Docker contributors for checking your kernel
|
|
|
|
configuration as a suitable Docker host.
|
|
|
|
|
|
|
|
To check your Kernel configuration run:
|
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
|
|
|
|
|
2015-04-29 15:51:57 -04:00
|
|
|
There is a rc script created for Docker. To start the Docker service:
|
2014-04-15 20:53:12 -04:00
|
|
|
|
2015-04-29 15:51:57 -04:00
|
|
|
$ sudo /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
|
|
|
|
2014-11-22 00:40:39 -05:00
|
|
|
## Images
|
|
|
|
|
2016-08-12 17:13:20 -04:00
|
|
|
There is a CRUX image as part of the Docker "Official Library" of images.
|
|
|
|
To use this image simply pull it or use it as part of your `FROM` line in
|
|
|
|
your `Dockerfile(s)`.
|
2014-11-22 00:40:39 -05:00
|
|
|
|
|
|
|
$ docker pull crux
|
|
|
|
$ docker run -i -t crux
|
|
|
|
|
2016-03-04 09:48:52 -05:00
|
|
|
There are also user contributed [CRUX based image(s)](https://hub.docker.com/_/crux/) on the Docker Hub.
|
2014-11-22 00:40:39 -05:00
|
|
|
|
|
|
|
|
2015-04-29 15:51:57 -04:00
|
|
|
## Uninstallation
|
|
|
|
|
|
|
|
To uninstall the Docker package:
|
|
|
|
|
|
|
|
$ sudo prt-get remove docker
|
|
|
|
|
|
|
|
The above command will not remove images, containers, volumes, or user created
|
|
|
|
configuration files on your host. If you wish to delete all images, containers,
|
|
|
|
and volumes run the following command:
|
|
|
|
|
|
|
|
$ rm -rf /var/lib/docker
|
|
|
|
|
|
|
|
You must delete the user created configuration files manually.
|
|
|
|
|
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.
|