We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d95ca commit 501088eCopy full SHA for 501088e
scripts/patch_hosts.sh
@@ -1,4 +1,4 @@
1
-sudo cp /etc/hosts /etc/hosts.mocket
+sudo grep -v httpbin.local /etc/hosts | sudo tee /etc/hosts.mocket
2
export CONTAINER_ID=$(docker compose ps -q proxy)
3
export CONTAINER_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $CONTAINER_ID)
4
echo "$CONTAINER_IP httpbin.local" | sudo tee -a /etc/hosts.mocket
0 commit comments