The docker run --dns does not resolve hostname and having hostname in resolv.conf does not work.
| ... | ... |
@@ -1074,7 +1074,7 @@ retrieve the container's ID once the container has finished running. |
| 1074 | 1074 |
$ sudo docker run -d --name static static-web-files sh |
| 1075 | 1075 |
$ sudo docker run -d --expose=8098 --name riak riakserver |
| 1076 | 1076 |
$ sudo docker run -d -m 100m -e DEVELOPMENT=1 -e BRANCH=example-code -v $(pwd):/app/bin:ro --name app appserver |
| 1077 |
- $ sudo docker run -d -p 1443:443 --dns=dns.dev.org --dns-search=dev.org -v /var/log/httpd --volumes-from static --link riak --link app -h www.sven.dev.org --name web webserver |
|
| 1077 |
+ $ sudo docker run -d -p 1443:443 --dns=10.0.0.1 --dns-search=dev.org -v /var/log/httpd --volumes-from static --link riak --link app -h www.sven.dev.org --name web webserver |
|
| 1078 | 1078 |
$ sudo docker run -t -i --rm --volumes-from web -w /var/log/httpd busybox tail -f access.log |
| 1079 | 1079 |
|
| 1080 | 1080 |
This example shows 5 containers that might be set up to test a web |
| ... | ... |
@@ -1089,7 +1089,7 @@ application change: |
| 1089 | 1089 |
two environment variables `DEVELOPMENT` and `BRANCH` and bind-mounting the |
| 1090 | 1090 |
current directory (`$(pwd)`) in the container in read-only mode as `/app/bin`; |
| 1091 | 1091 |
4. Start the `webserver`, mapping port `443` in the container to port `1443` on |
| 1092 |
- the Docker server, setting the DNS server to `dns.dev.org` and DNS search |
|
| 1092 |
+ the Docker server, setting the DNS server to `10.0.0.1` and DNS search |
|
| 1093 | 1093 |
domain to `dev.org`, creating a volume to put the log files into (so we can |
| 1094 | 1094 |
access it from another container), then importing the files from the volume |
| 1095 | 1095 |
exposed by the `static` container, and linking to all exposed ports from |