Skip to content

Commit 7714b0e

Browse files
committed
pull image always
1 parent 23b855b commit 7714b0e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ if command -v container &> /dev/null
2424
then
2525
echo "Apple 'container' tool detected. Current version:"
2626
container --version
27+
echo "Stopping any running Apple 'container' processes..."
28+
echo "Ensuring a clean installation of Apple 'container' tool..."
29+
uninstall-container.sh -k
30+
sudo pkill -f container
2731
else
2832
echo "Apple 'container' tool not detected. Proceeding with installation..."
2933

@@ -35,6 +39,9 @@ else
3539
sudo installer -pkg container-installer.pkg -target /
3640
fi
3741

42+
echo "Starting the Sandbox Container..."
43+
container system start
44+
3845
echo "Setting up local network domain..."
3946

4047
# Run the commands for setting up the local network
@@ -46,6 +53,11 @@ container system dns default set local
4653

4754
echo "Starting the Sandbox Container..."
4855
container system start
56+
57+
58+
echo "Pulling the latest image: instavm/coderunner"
59+
container image pull instavm/coderunner
60+
4961
# Run the command to start the sandbox container
5062
echo "Running: container run --name coderunner --detach --rm --cpus 8 --memory 4g instavm/coderunner"
5163
container run --name coderunner --detach --rm --cpus 8 --memory 4g instavm/coderunner

0 commit comments

Comments
 (0)