Adding LICENSE file
[genesis.git] / fuel-build / docker / ubuntu-builder / enable_dockerx2
1 #!/bin/sh
2 ##############################################################################
3 # Copyright (c) 2015 Ericsson AB and others.
4 # stefan.k.berg@ericsson.com
5 # jonas.bjurel@ericsson.com
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
11 #
12 # Needed to expose underlying cgroups to container
13 mount -n -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
14 mount -t securityfs none /sys/kernel/security
15
16 for mnt in $(cut -d: -f2 /proc/1/cgroup); do
17   mkdir /sys/fs/cgroup/$mnt
18   mount -n -t cgroup -o $mnt cgroup /sys/fs/cgroup/$mnt
19 done