Cardano Docker CheatSheet
Cardano Docker CheatSheet
docker pull cardano-node:latest
docker run -d --name cardano-node -p 3001:3001 cardano-node:latest
• -d: Run the container in detached mode (background).
• --name: Assign a name to the container.
• -p: Map the host port to the container port.
docker logs -f cardano-node
• -f: Follow the log output in real-time.
docker stop cardano-node
docker rm cardano-node
docker run -d --name cardano-node -p 3001:3001 -v /path/on/host:/path/in/container cardano-node:latest
# -v: Mount a volume (for data persistence).
docker exec -it cardano-node /bin/bash -it
: Interactive terminal.
docker pull cardano-node:latest
docker stop cardano-node
docker rm cardano-node
docker run -d --name cardano-node -p 3001:3001 cardano-node:latest
docker build -t custom-cardano-node:latest /path/to/Dockerfile/directory
docker ps
docker ps -a
docker image prune