Skip to content

Commit

Permalink
fix docker plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed May 5, 2024
1 parent 0fb8222 commit 515692f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/code-runner-plugins/docker
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
if [[ "$ACTION" == "init" ]] ; then
container=$(docker run -it --env-file=<(cat /proc/self/environ | tr '\0' '\n') -d -v "$DIRECTORY":/root "$IMAGE")
container=$(docker run -it --env-file=<(cat /proc/self/environ | tr '\0' '\n') -d -v "$DIRECTORY":/root "$IMAGE" /bin/sh)
echo "container=$container" > .init
elif [[ "$ACTION" == "run" ]] ; then
source .init
Expand Down

0 comments on commit 515692f

Please sign in to comment.