Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Use --cap-add=NET_ADMIN instead of provileged (docker >= 1.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
chantra committed May 15, 2015
1 parent f0faead commit 5956c47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ docker build -t="${USER}/atc" .
# Usage

`ATC` modifies the network of the host it is running on. As such, it **MUST**
run with the following options: `--privileged --net=host`.
run with the following options: `--cap-add=NET_ADMIN --net=host`.

There is currently 2 environment variables:
* ATCD_WAN (default *eth0*)
Expand All @@ -31,15 +31,15 @@ There is currently 2 environment variables:
To run atcd with the default settings:

```
docker run -it --privileged --net=host --rm atcd/atc
docker run -it --cap-add=NET_ADMIN --net=host --rm atcd/atc
```

To change which interface to use for WAN access (internet) or LAN, you can modify
*ATCD_WAN* and *ATCD_LAN* environment variables. For example:


```
docker run -it --privileged --net=host --rm -e ATCD_LAN=wlan1 -e ATCD_WAN=em1 atcd/atc
docker run -it --cap-add=NET_ADMIN --net=host --rm -e ATCD_LAN=wlan1 -e ATCD_WAN=em1 atcd/atc
```

You can then access ATC UI at:
Expand Down

0 comments on commit 5956c47

Please sign in to comment.