#!/bin/sh
IFS=$'\n'
echo $1
echo $2
case $2 in
attach) docker exec -it $(docker ps -a --no-trunc | grep $1 | awk '{print $1}') geth attach --datadir=/root/.ethereum/devchain
;;
log) docker exec -it $(docker ps -a --no-trunc | grep $1 | awk '{print $1}') tail -n 30 -f /root/geth.log
;;
sh) docker exec -it $(docker ps -a --no-trunc | grep $1 | awk '{print $1}') sh
;;
bash) docker exec -it $(docker ps -a --no-trunc | grep $1 | awk '{print $1}') bash
;;
*) echo "command parms1: docker container name"
echo "command parms2: attach (geth attach) or log (tail -n 30 -f) or sh or bash"
esac
ethereum docker geth shell for geth attach and tail log
Help use docker geth for geth attach and watch log. Geth Command line path need to change for yourself env.
[轉]如何為LINUX, WINDOWS容器加入憑證?
https://blog.kkbruce.net/2020/01/linux-windows-container-add-cert.html?fbclid=IwAR0d_LhzAYwatOZ-Ibl4mK7Ne-iAViwKT_UWcj0Wg52YlHTKzSFNDWcp-Hk#more
ubuntu
windows
ubuntu
/usr/local/share/ca-certificates
update-ca-certificates
windows
Import-Certificate -FilePath ooxx -CertStoreLocation ooxx
訂閱:
文章 (Atom)