Browse code

Note that using -lxc-conf to change things Docker manages has pitfalls

Signed-off-by: Sven Dowideit <SvenDowideit@docker.com>

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@docker.com> (github: SvenDowideit)

Sven Dowideit authored on 2014/12/04 10:49:06
Showing 1 changed files
... ...
@@ -369,6 +369,13 @@ Note that in the future, a given host's docker daemon may not use LXC, so this
369 369
 is an implementation-specific configuration meant for operators already
370 370
 familiar with using LXC directly.
371 371
 
372
+> **Note:**
373
+> If you use `--lxc-conf` to modify a container's configuration which is also
374
+> managed by the Docker daemon, then the Docker daemon will not know about this
375
+> modification, and you will need to manage any conflicts yourself. For example,
376
+> you can use `--lxc-conf` to set a container's IP address, but this will not be
377
+> reflected in the `/etc/hosts` file.
378
+
372 379
 ## Overriding Dockerfile image defaults
373 380
 
374 381
 When a developer builds an image from a [*Dockerfile*](/reference/builder/#dockerbuilder)