Skip to content

Commit

Permalink
add-host
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 27, 2024
1 parent c46f7b2 commit 58765e8
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/main/resources/com/rultor/agents/req/_head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,21 @@ function docker_when_possible {
fi
ls -al .
docker run -t --rm \
-v "$(pwd):/main" "${vars[@]}" \
--hostname=docker --privileged --net=host \
-v "$(pwd):/main" \
"${vars[@]}" \
--hostname=docker \
--privileged \
--net=host \
--dns 8.8.8.8 \
--memory=8g --memory-swap=16g --oom-kill-disable \
--add-host docker:127.0.0.1 \
--memory=8g \
--memory-swap=16g \
--oom-kill-disable \
"--cidfile=$(pwd)/cid" -w=/main \
-v /var/run/docker.sock:/var/run/docker.sock \
--name="${container}" "${use_image}" /main/entry.sh
--name="${container}" \
"${use_image}" \
/main/entry.sh
if [ -n "${directory}" ]; then
docker rmi "${use_image}"
fi
Expand Down

0 comments on commit 58765e8

Please sign in to comment.