mirror of https://github.com/docker/docs.git
Reorganize and clarify the DOCKER_BUILDTAGS docs
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
parent
9dc82e6102
commit
1b31a80eb7
|
@ -152,11 +152,16 @@ directory, and the local "./vendor" directory as necessary.
|
||||||
|
|
||||||
If you're building a binary that may need to be used on platforms that include
|
If you're building a binary that may need to be used on platforms that include
|
||||||
AppArmor, you will need to set `DOCKER_BUILDTAGS` as follows:
|
AppArmor, you will need to set `DOCKER_BUILDTAGS` as follows:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export DOCKER_BUILDTAGS='apparmor'
|
export DOCKER_BUILDTAGS='apparmor'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you're building a binary that may need to be used on platforms that include
|
||||||
|
SELinux, you will need to use the `selinux` build tag:
|
||||||
|
```bash
|
||||||
|
export DOCKER_BUILDTAGS='selinux'
|
||||||
|
```
|
||||||
|
|
||||||
There are build tags for disabling graphdrivers as well. By default, support
|
There are build tags for disabling graphdrivers as well. By default, support
|
||||||
for all graphdrivers are built in.
|
for all graphdrivers are built in.
|
||||||
|
|
||||||
|
@ -175,13 +180,9 @@ To disable aufs:
|
||||||
export DOCKER_BUILDTAGS='exclude_graphdriver_aufs'
|
export DOCKER_BUILDTAGS='exclude_graphdriver_aufs'
|
||||||
```
|
```
|
||||||
|
|
||||||
NOTE: if you need to set more than one build tag, space separate them.
|
NOTE: if you need to set more than one build tag, space separate them:
|
||||||
|
|
||||||
If you're building a binary that may need to be used on platforms that include
|
|
||||||
SELinux, you will need to set `DOCKER_BUILDTAGS` as follows:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
export DOCKER_BUILDTAGS='selinux'
|
export DOCKER_BUILDTAGS='apparmor selinux exclude_graphdriver_aufs'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Static Daemon
|
### Static Daemon
|
||||||
|
|
Loading…
Reference in New Issue