Commands I Use and Forget
Last Updated: Oct 7, 2021
Docker
docker pull <image>
List images.
docker images
docker image rm <image>
Specify port number for host and container.
docker run -d -p<host>:<container> <image>
docker run -d --name <name> <image>
docker stop <container>
docker start <container>
List all containers.
docker ps -a
Show logs for the specified container.
docker logs <container>
docker logs <container> -f
docker exec -it <container> /bin/bash
docker network ls
docker network create <network>
Hardhat
npx hardhat compile
npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
GitHub
git reset --soft HEAD~1
git merge origin/main
git pull
sea-plus
protoc -I <dir>