Merge pull request #187 from csgillespie/patch-1

Add sudo where necessary
This commit is contained in:
David Xia authored and GitHub committed 2018-05-22 23:52:45 -04:00
commit c5a3ad4317
1 file changed
+7 -7
+7 -7
View File
@@ -29,10 +29,10 @@ container (see [below](#running-as-a-docker-container)).
```sh
$ apt-get install git devscripts debhelper build-essential dh-make
$ git clone https://github.com/spotify/docker-gc.git
$ cd docker-gc
$ debuild -us -uc -b
sudo apt-get install git devscripts debhelper build-essential dh-make
git clone https://github.com/spotify/docker-gc.git
cd docker-gc
debuild -us -uc -b
```
If you get lintian errors during `debuild`, try `debuild --no-lintian -us -uc -b`.
@@ -41,7 +41,7 @@ If you get lintian errors during `debuild`, try `debuild --no-lintian -us -uc -b
## Installing the Debian Package
```sh
$ dpkg -i ../docker-gc_0.1.0_all.deb
sudo dpkg -i ../docker-gc_0.1.0_all.deb
```
This installs the `docker-gc` script into `/usr/sbin`. If you want it to
@@ -187,7 +187,7 @@ The docker-gc container requires access to the docker socket in order to
function, so you need to map it when running, e.g.:
```sh
$ docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc:ro spotify/docker-gc
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc:ro spotify/docker-gc
```
The `/etc` directory is also mapped so that it can read any exclude files
@@ -205,7 +205,7 @@ If your docker daemon is configured to run with user namespace, you will need to
run the container with [user namespace disabled][disable-user-namespace]:
```sh
$ docker run --rm --userns host -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc
docker run --rm --userns host -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc
```
[disable-user-namespace]: https://docs.docker.com/engine/reference/commandline/dockerd/#disable-user-namespace-for-a-container