Skip to content

Commit dbce528

Browse files
authored
Update docker-entrypoint.http_shell.sh
1 parent 43b2776 commit dbce528

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docker/http_shell/docker-entrypoint.http_shell.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
#!/usr/bin/env ash
22

3+
HTTP_SHELL_PORT=${HTTP_SHELL_PORT:-8080}
4+
echo "HTTP_SHELL_PORT=$HTTP_SHELL_PORT"
5+
36
(
47

58
sleep 8;
9+
docker network create common-all
610

711
echo '运行http-shell';
812
docker rm -f http-shell;\
9-
docker run -d --restart=always --name http-shell --privileged \
13+
docker run -d --restart=always --network common-all --name http-shell --privileged \
1014
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) \
11-
-p 8080:8080 \
15+
-p $HTTP_SHELL_PORT:8080 \
1216
adockero/http-shell:alpine
1317

1418
) &

0 commit comments

Comments
 (0)