Commit 3043001
committed
Label /etc/resolv.conf, /etc/hosts ... correctly in shared network containers
If I run two containers with the same network they share the same /etc/resolv.conf.
The current code changes the labels of the /etc/resolv.conf currently to the
private label which causes it to be unusable in the first container.
This patch changes the labels to a shared label if more then one container
will use the content.
Docker-DCO-1.1-Signed-off-by: Dan Walsh <[email protected]> (github: rhatdan)1 parent a461cc8 commit 3043001
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1064 | 1068 | | |
1065 | | - | |
| 1069 | + | |
1066 | 1070 | | |
1067 | 1071 | | |
1068 | 1072 | | |
| |||
1071 | 1075 | | |
1072 | 1076 | | |
1073 | 1077 | | |
1074 | | - | |
| 1078 | + | |
1075 | 1079 | | |
1076 | 1080 | | |
1077 | 1081 | | |
| |||
1080 | 1084 | | |
1081 | 1085 | | |
1082 | 1086 | | |
1083 | | - | |
| 1087 | + | |
1084 | 1088 | | |
1085 | 1089 | | |
1086 | 1090 | | |
| |||
0 commit comments