Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 15194

Docker images, containers, hub, and everything related to the containerization platform

1 vote
1 answer
4k views

Add mapping ip and host into /etc/hosts with docker

I am using docker to scale my service. I know there's a command called --add--host for adding host into /etc/host However, I have a bunch of hosts need to be added. … It's just too long to launch a docker in this way docker run -it \ --add-host=testing1.example.com:10.0.0.1 \ --add-host=testing2.example.com:10.0.0.2 \ --add-host=testing3.example.com:10.0.0.3 …
rj487's user avatar
  • 143