Skip to content

Commit

Permalink
Update create_container.sh
Browse files Browse the repository at this point in the history
Rather than setting flag, set variable to internal host flag directly.
  • Loading branch information
Jbsco authored Nov 29, 2023
1 parent 518eb49 commit cca761f
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions docker/create_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,12 @@
# Create the docker container with a bind mount:
echo "Creating container..."
. ./docker_config.sh
if [ -n "ON_LINUX" ]; then
execute "docker run -d \
--name $DOCKER_CONTAINER_NAME \
--mount type=bind,source=\"$(pwd)\"/../..,target=/share \
--add-host=host.docker.internal:host-gateway \
$DOCKER_IMAGE_NAME \
sleep infinity"
else
execute "docker run -d \
--name $DOCKER_CONTAINER_NAME \
--mount type=bind,source=\"$(pwd)\"/../..,target=/share \
$DOCKER_IMAGE_NAME \
sleep infinity"
fi
execute "docker run -d \
--name $DOCKER_CONTAINER_NAME \
--mount type=bind,source=\"$(pwd)\"/../..,target=/share \
$ON_LINUX \
$DOCKER_IMAGE_NAME \
sleep infinity"

# Run docker provision script inside of container to get things set up:
echo "Provisioning container..."
Expand Down

0 comments on commit cca761f

Please sign in to comment.