2014-01-30 20:13:54 +01:00
|
|
|
Docker is an open-source project to easily create lightweight, portable,
|
|
|
|
self-sufficient containers from any application. The same container that
|
|
|
|
a developer builds and tests on a laptop can run at scale, in production,
|
|
|
|
on VMs, bare metal, OpenStack clusters, public clouds and more.
|
|
|
|
|
|
|
|
To use docker as a limited user, add your user to the 'docker' group:
|
|
|
|
|
2014-04-04 18:25:23 +02:00
|
|
|
# groupadd -r -g 281 docker
|
2014-01-30 20:13:54 +01:00
|
|
|
# usermod -a -G docker <your_username>
|
|
|
|
|
2014-07-15 18:26:19 +02:00
|
|
|
This will require logging out and back in.
|
2014-01-30 20:13:54 +01:00
|
|
|
|
|
|
|
To have the docker daemon start and stop with your host,
|
|
|
|
add to /etc/rc.d/rc.local:
|
|
|
|
|
|
|
|
if [ -x /etc/rc.d/rc.docker ]; then
|
|
|
|
/etc/rc.d/rc.docker start
|
|
|
|
fi
|
|
|
|
|
|
|
|
and to /etc/rc.d/rc.local_shutdown (creating it if needed):
|
|
|
|
|
|
|
|
if [ -x /etc/rc.d/rc.docker ]; then
|
|
|
|
/etc/rc.d/rc.docker stop
|
|
|
|
fi
|
|
|
|
|
2014-07-15 18:26:19 +02:00
|
|
|
If you are interested in enabling cgroup memory resource controll over swap as
|
|
|
|
well, then append "swapaccount=1" to your kernel's parameters. This is often in
|
|
|
|
/etc/lilo.conf, on the "append" variable.
|
|
|
|
|
2014-01-30 20:13:54 +01:00
|
|
|
NOTE: google-go-lang is only needed at compile time - not needed for runtime.
|
2014-12-15 00:38:01 +01:00
|
|
|
|
|
|
|
Docker doesn't support x86, only x86_64
|