docker-eth 420 B

12345678910111213141516
  1. #!/usr/bin/env sh
  2. mkdir -p ~/.ethereum ~/.web3
  3. # check if sudo is necessary
  4. if ! id -nG $(whoami)|grep -qw "docker"; then SUDO='sudo'; else SUDO=''; fi
  5. $SUDO docker run --rm -it \
  6. -p 127.0.0.1:8545:8545 \
  7. -p 0.0.0.0:30303:30303 \
  8. -v ~/.ethereum:/.ethereum \
  9. -v ~/.web3:/.web3 \
  10. -e HOME=/ \
  11. --user $(id -u):$(id -g) \
  12. ethereum/client-cpp $@