Skip to content

Commit

Permalink
Remove alias local dependancy in script
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Oct 23, 2024
1 parent 9c85329 commit a6198d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions template/compose/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ function check_docker {

if check_docker; then
USER_ID=$(id -u); USER_GID=$(id -g)
docker="docker"
else
USER_ID=0; USER_GID=0
alias docker=podman
docker="podman"
fi

# make sure we have a network to share beteen the devcontainer and gateway container
if ! docker network inspect channel_access_devcontainer &>/dev/null ; then
docker network create --subnet="170.21.0.0/16" channel_access_devcontainer
if ! $docker network inspect channel_access_devcontainer &>/dev/null ; then
$docker network create --subnet="170.21.0.0/16" channel_access_devcontainer
fi

# ensure local container users can access X11 server
Expand Down

0 comments on commit a6198d2

Please sign in to comment.