Last active
September 14, 2021 07:15
-
-
Save cryptodusan/368ceb68ab7ba65c1638bbe6fe94c766 to your computer and use it in GitHub Desktop.
Ironfish Docker script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CONTAINER_NAME=ironfish | |
RUNNING=$(docker ps -f name=${CONTAINER_NAME} -q) | |
if [ -z $RUNNING ]; then | |
docker run --rm --tty --interactive --name $CONTAINER_NAME --network host --volume $HOME/.ironfish:/root/.ironfish ghcr.io/iron-fish/ironfish:latest $@ | |
else | |
docker exec --tty --interactive $CONTAINER_NAME ./bin/run $@ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm it's started but can't connect, Any suggestion for network config?
Update : It takes time with docker setup for connecting with node & enable to run other commands. So be patient!