We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43b2776 commit dbce528Copy full SHA for dbce528
docker/http_shell/docker-entrypoint.http_shell.sh
@@ -1,14 +1,18 @@
1
#!/usr/bin/env ash
2
3
+HTTP_SHELL_PORT=${HTTP_SHELL_PORT:-8080}
4
+echo "HTTP_SHELL_PORT=$HTTP_SHELL_PORT"
5
+
6
(
7
8
sleep 8;
9
+docker network create common-all
10
11
echo '运行http-shell';
12
docker rm -f http-shell;\
-docker run -d --restart=always --name http-shell --privileged \
13
+docker run -d --restart=always --network common-all --name http-shell --privileged \
14
-v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):$(which docker) \
--p 8080:8080 \
15
+-p $HTTP_SHELL_PORT:8080 \
16
adockero/http-shell:alpine
17
18
) &
0 commit comments