docker/docker-bin: 0.8.1 -> 0.9.0

--HG--
extra : rebase_source : e80277a18fcae77ca5fdb8e2aa95b23dcccb5c49
This commit is contained in:
James Mills 2014-03-11 10:13:27 +10:00
parent 33b19cbcdb
commit b8befd8d57
8 changed files with 67 additions and 111 deletions

View File

@ -1,3 +1,3 @@
8f14871d374d0cb991d47ce1ee665b39 docker-0.8.1 f03ddc7a733a6653979a8395d5bc839a docker-0.9.0
966e1916d611427c44686ad09145996f docker.conf 966e1916d611427c44686ad09145996f docker.conf
3af74d547ad9de52745eb29003b540e3 docker.rc eb65657b29dede7737d13c3c34b8f08d docker.rc

View File

@ -1,13 +1,12 @@
# Description: Pack, ship and run any application as a lightweight container # Description: Pack, ship and run any application as a lightweight container
# URL: http://www.docker.io/ # URL: http://www.docker.io/
# Maintainer: James Mills, prologic at shortcircuit dot net dot au # Maintainer: James Mills, prologic at shortcircuit dot net dot au
# Packager: Sébastien "Seblu" Luttringer
# #
# Depends on: bridge-utils lxc sqlite3 # Depends on: bridge-utils sqlite3
name=docker-bin name=docker-bin
version=0.8.1 version=0.9.0
release=2 release=1
source=( source=(
https://get.docker.io/builds/Linux/x86_64/docker-$version https://get.docker.io/builds/Linux/x86_64/docker-$version
docker.rc docker.rc

View File

@ -1,59 +1,26 @@
Kernel Requirements Kernel Requirements
=================== ===================
If you want to have a full working CRUX+Docker system you will need to rebuild your kernel various networking, cgroups and optional lvm options
If you want to have a full working CRUX+Docker system you will need to rebuild your kernel with the following options enabled: Please review the provided ``test_kernel_config.sh`` shell script carefully and use this to test your kernel configuration. This README does not document
what these specific options are to vaoid duplication. They are listed instead in ``test_kernel_config.sh``.
Networking: You may check your kernel configuration by running:
- CONFIG_BRIDGE
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE
- CONFIG_NF_NAT
- CONFIG_NF_NAT_IPV4
- CONFIG_NF_NAT_NEEDED
LVM:
- CONFIG_BLK_DEV_DM
- CONFIG_DM_THIN_PROVISIONING
- CONFIG_EXT4_FS
Namespaces:
- CONFIG_NAMESPACES
- CONFIG_UTS_NS
- CONFIG_IPC_NS
- CONFIG_UID_NS
- CONFIG_PID_NS
- CONFIG_NET_NS
Cgroups:
- CONFIG_CGROUPS
Cgroups Controllers (*optional but highly recommended*):
- CONFIG_CGROUP_CPUACCT
- CONFIG_BLK_CGROUP
- CONFIG_MEMCG
- CONFIG_MEMCG_SWAP
You may check your kernel configuration by running the provided ``test_kernel_config.sh`` script against your kernel configuration:
:: ::
./test_kernel_config.sh /usr/src/linux/.config ./test_kernel_config.sh /usr/src/linux/.config
Other Requirements Execution Engines
================== =================
As of Docker 0.9+ execution engines are pluggable and as such Docker no longer depends on lxc.
The new default execution driver is now an internal ``libcontainer`` driver that replaces the need for lxc.
You **must** have the following ``cgroup`` mount point mounted: Please see the `Docker Documentation <http://docs.docker.io>`_ if you want to use a different execution engine other then the default.
::
none /cgroup cgroup defaults 0 0
Storage Backends Storage Backends
================ ================
@ -76,6 +43,4 @@ To use the ``btrfs`` backend edit ``/etc/docker.conf`` and modify the ``DOCKER_O
Docker Client Docker Client
============= =============
The provided Docker rc script changes the group ownership of the ``/var/run/socker.sock`` UNIX Socket to ``docker``. Add yourself to the ``docker`` group if you wish to access the Docker daemon on localhost via UNIX Socker.
Add yourself to this group if you wish to access the Docker daemon on localhost via UNIX Socker.

View File

@ -7,10 +7,24 @@ source /etc/docker.conf
case $1 in case $1 in
start) start)
nohup /usr/bin/docker $DOCKER_OPTS &> /var/log/docker.log & # Ensure ownership and permissiong of log file.
touch /var/run/docker.sock touch /var/log/docker.log
chgrp docker /var/run/docker.sock chgrp docker /var/log/docker.log
chmod 660 /var/run/docker.sock chown 640 /var/log/docker.log
# Ensure cgroups is properly mounted. (Taken from: https://github.com/dotcloud/docker/blob/v0.9.0/contrib/init/sysvinit-debian/docker#L57-L66)
if ! grep -q cgroup /proc/mounts; then
# rough approximation of cgroupfs-mount
mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
for sys in $(cut -d' ' -f1 /proc/cgroups); do
mkdir -p /sys/fs/cgroup/$sys
if ! mount -n -t cgroup -o $sys cgroup /sys/fs/cgroup/$sys 2>/dev/null; then
rmdir /sys/fs/cgroup/$sys 2>/dev/null || true
fi
done
fi
nohup /usr/bin/docker $DOCKER_OPTS > /var/log/docker.log 2>&1 &
;; ;;
stop) stop)
if [ -f /var/run/docker.pid ]; then if [ -f /var/run/docker.pid ]; then

View File

@ -1,3 +1,3 @@
966e1916d611427c44686ad09145996f docker.conf 966e1916d611427c44686ad09145996f docker.conf
3af74d547ad9de52745eb29003b540e3 docker.rc eb65657b29dede7737d13c3c34b8f08d docker.rc
3e74f5af4a74f3448a1db5763e455eb9 v0.8.1.tar.gz 5969bb91ec4f17aa381831046fb15531 v0.9.0.tar.gz

View File

@ -1,14 +1,13 @@
# Description: Pack, ship and run any application as a lightweight container # Description: Pack, ship and run any application as a lightweight container
# URL: http://www.docker.io/ # URL: http://www.docker.io/
# Maintainer: James Mills, prologic at shortcircuit dot net dot au # Maintainer: James Mills, prologic at shortcircuit dot net dot au
# Packager: Sébastien "Seblu" Luttringer
# #
# Depends on: go bridge-utils lxc sqlite3 # Depends on: go bridge-utils sqlite3
name=docker name=docker
version=0.8.1 version=0.9.0
revision=a1598d1e1c revision=2b3fdf2344
release=2 release=1
source=( source=(
https://github.com/dotcloud/$name/archive/v$version.tar.gz https://github.com/dotcloud/$name/archive/v$version.tar.gz
$name.rc $name.rc

View File

@ -1,59 +1,26 @@
Kernel Requirements Kernel Requirements
=================== ===================
If you want to have a full working CRUX+Docker system you will need to rebuild your kernel various networking, cgroups and optional lvm options
If you want to have a full working CRUX+Docker system you will need to rebuild your kernel with the following options enabled: Please review the provided ``test_kernel_config.sh`` shell script carefully and use this to test your kernel configuration. This README does not document
what these specific options are to vaoid duplication. They are listed instead in ``test_kernel_config.sh``.
Networking: You may check your kernel configuration by running:
- CONFIG_BRIDGE
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE
- CONFIG_NF_NAT
- CONFIG_NF_NAT_IPV4
- CONFIG_NF_NAT_NEEDED
LVM:
- CONFIG_BLK_DEV_DM
- CONFIG_DM_THIN_PROVISIONING
- CONFIG_EXT4_FS
Namespaces:
- CONFIG_NAMESPACES
- CONFIG_UTS_NS
- CONFIG_IPC_NS
- CONFIG_UID_NS
- CONFIG_PID_NS
- CONFIG_NET_NS
Cgroups:
- CONFIG_CGROUPS
Cgroups Controllers (*optional but highly recommended*):
- CONFIG_CGROUP_CPUACCT
- CONFIG_BLK_CGROUP
- CONFIG_MEMCG
- CONFIG_MEMCG_SWAP
You may check your kernel configuration by running the provided ``test_kernel_config.sh`` script against your kernel configuration:
:: ::
./test_kernel_config.sh /usr/src/linux/.config ./test_kernel_config.sh /usr/src/linux/.config
Other Requirements Execution Engines
================== =================
As of Docker 0.9+ execution engines are pluggable and as such Docker no longer depends on lxc.
The new default execution driver is now an internal ``libcontainer`` driver that replaces the need for lxc.
You **must** have the following ``cgroup`` mount point mounted: Please see the `Docker Documentation <http://docs.docker.io>`_ if you want to use a different execution engine other then the default.
::
none /cgroup cgroup defaults 0 0
Storage Backends Storage Backends
================ ================
@ -76,6 +43,4 @@ To use the ``btrfs`` backend edit ``/etc/docker.conf`` and modify the ``DOCKER_O
Docker Client Docker Client
============= =============
The provided Docker rc script changes the group ownership of the ``/var/run/socker.sock`` UNIX Socket to ``docker``. Add yourself to the ``docker`` group if you wish to access the Docker daemon on localhost via UNIX Socker.
Add yourself to this group if you wish to access the Docker daemon on localhost via UNIX Socker.

View File

@ -7,10 +7,24 @@ source /etc/docker.conf
case $1 in case $1 in
start) start)
nohup /usr/bin/docker $DOCKER_OPTS &> /var/log/docker.log & # Ensure ownership and permissiong of log file.
touch /var/run/docker.sock touch /var/log/docker.log
chgrp docker /var/run/docker.sock chgrp docker /var/log/docker.log
chmod 660 /var/run/docker.sock chown 640 /var/log/docker.log
# Ensure cgroups is properly mounted. (Taken from: https://github.com/dotcloud/docker/blob/v0.9.0/contrib/init/sysvinit-debian/docker#L57-L66)
if ! grep -q cgroup /proc/mounts; then
# rough approximation of cgroupfs-mount
mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
for sys in $(cut -d' ' -f1 /proc/cgroups); do
mkdir -p /sys/fs/cgroup/$sys
if ! mount -n -t cgroup -o $sys cgroup /sys/fs/cgroup/$sys 2>/dev/null; then
rmdir /sys/fs/cgroup/$sys 2>/dev/null || true
fi
done
fi
nohup /usr/bin/docker $DOCKER_OPTS > /var/log/docker.log 2>&1 &
;; ;;
stop) stop)
if [ -f /var/run/docker.pid ]; then if [ -f /var/run/docker.pid ]; then