|
| 1 | +--- |
| 2 | +title: Docker Images |
| 3 | +description: |
| 4 | + Learn about Mina Rust Docker images, versioning, and how to use them for |
| 5 | + development and deployment |
| 6 | +--- |
| 7 | + |
| 8 | +# Mina Rust Docker Images |
| 9 | + |
| 10 | +The Mina Rust project provides Docker images for easy deployment and testing. |
| 11 | + |
| 12 | +## Available Images |
| 13 | + |
| 14 | +Docker images are available at Docker Hub under the `o1labs` organization: |
| 15 | + |
| 16 | +- **Main Node**: `o1labs/mina-rust` - The core Mina Rust node |
| 17 | +- **Frontend**: `o1labs/mina-rust-frontend` - Web dashboard and monitoring |
| 18 | + interface |
| 19 | + |
| 20 | +## Image Tags and Versioning |
| 21 | + |
| 22 | +### For Production Use |
| 23 | + |
| 24 | +**Always use version tags for production deployments for stability.** Avoid |
| 25 | +using `latest` tags as they may change unexpectedly. |
| 26 | + |
| 27 | +- **Version tags**: `o1labs/mina-rust:v1.4.2` (recommended for stability) |
| 28 | +- **Commit-based tags**: `o1labs/mina-rust:2b9e87b2` (available for accessing |
| 29 | + specific features during development, not recommended for general use) |
| 30 | + |
| 31 | +Example: |
| 32 | + |
| 33 | +```bash |
| 34 | +# Use a version tag (recommended for stability) |
| 35 | +docker pull o1labs/mina-rust:v1.4.2 |
| 36 | +docker pull o1labs/mina-rust-frontend:v1.4.2 |
| 37 | + |
| 38 | +# Commit hashes available for development/testing specific features |
| 39 | +docker pull o1labs/mina-rust:2b9e87b2 |
| 40 | +docker pull o1labs/mina-rust-frontend:2b9e87b2 |
| 41 | +``` |
| 42 | + |
| 43 | +### Automatic Publishing |
| 44 | + |
| 45 | +Images are automatically built and pushed to Docker Hub: |
| 46 | + |
| 47 | +- **On develop branch**: When commits are pushed to `develop`, images are tagged |
| 48 | + with the commit hash (8 characters) |
| 49 | +- **On tags**: When version tags are created, images are tagged with the tag |
| 50 | + name |
| 51 | + |
| 52 | +### Finding Available Tags |
| 53 | + |
| 54 | +You can find available tags at: |
| 55 | + |
| 56 | +- [o1labs/mina-rust on Docker Hub](https://hub.docker.com/r/o1labs/mina-rust/tags) |
| 57 | +- [o1labs/mina-rust-frontend on Docker Hub](https://hub.docker.com/r/o1labs/mina-rust-frontend/tags) |
| 58 | + |
| 59 | +## Local Development |
| 60 | + |
| 61 | +For local development and testing, you can build images using the Makefile: |
| 62 | + |
| 63 | +```bash |
| 64 | +# Build images locally |
| 65 | +make docker-build-mina |
| 66 | +make docker-build-frontend |
| 67 | + |
| 68 | +# Push to registry (requires Docker Hub login) |
| 69 | +make docker-push-mina |
| 70 | +make docker-push-frontend |
| 71 | +``` |
| 72 | + |
| 73 | +## Architecture Support |
| 74 | + |
| 75 | +Images are built for multiple architectures: |
| 76 | + |
| 77 | +- `linux/amd64` (x86_64) |
| 78 | +- `linux/arm64` (ARM64) |
| 79 | + |
| 80 | +## Using Docker Images |
| 81 | + |
| 82 | +### Running a Basic Node |
| 83 | + |
| 84 | +```bash |
| 85 | +# Pull and run the main node |
| 86 | +docker pull o1labs/mina-rust:v1.4.2 |
| 87 | +docker run -p 8302:8302 o1labs/mina-rust:v1.4.2 |
| 88 | +``` |
| 89 | + |
| 90 | +### Running with Frontend Dashboard |
| 91 | + |
| 92 | +```bash |
| 93 | +# Using Docker Compose (recommended) |
| 94 | +# Download the latest release and use the provided docker-compose files |
| 95 | + |
| 96 | +# Or run containers separately |
| 97 | +docker run -d --name mina-node -p 8302:8302 o1labs/mina-rust:v1.4.2 |
| 98 | +docker run -d --name mina-frontend -p 8070:8070 o1labs/mina-rust-frontend:v1.4.2 |
| 99 | +``` |
| 100 | + |
| 101 | +For complete setup guides, see the |
| 102 | +[Node Operators](../node-operators/getting-started) section. |
0 commit comments