# How to run Iron Fish node with docker

By [SACTE](https://paragraph.com/@sacte) · 2022-05-13

---

Precondition
------------

Install docker and docker compose

    wget -qO- https://get.docker.com/ | bash
    curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    chmod +x /usr/local/bin/docker-compose
    

Installation procedure
----------------------

Here is the compose yaml template. You can custom . version: '3.3' services: iron-fish: container\_name: iron network\_mode: host restart: unless-stopped volumes: - '<your storage>:/root/.ironfish' image: 'ghcr.io/iron-fish/ironfish:latest' miners: container\_name: iron-miner image: ghcr.io/iron-fish/ironfish:latest network\_mode: host volumes: - '<your storage>:/root/.ironfish' restart: unless-stopped command: miners:start -t 10 You need set blockGraffiti for your Iron Fish node docker run -d --name iron --rm --tty --interactive --network host --volume <your storage>:/root/.ironfish ghcr.io/iron-fish/ironfish:latest docker run --rm --tty --interactive --network host --volume <your storage>:/root/.ironfish ghcr.io/iron-fish/ironfish:latest config:set blockGraffiti "SACTE" docker stop iron && docker rm iron Then you can up your node with docker compose docker-compose -f iron.yml up -d Upgrade If you want to upgrade your node version. You can do this. docker pull ghcr.io/iron-fish/ironfish:latest docker-compose -f iron.yml down docker-compose -f iron.yml up -d If the upgrade need reset. You can do this. docker pull ghcr.io/iron-fish/ironfish:latest docker exec iron-miner /usr/src/app/bin/ironfish accounts:export default > iron.default.json docker-compose -f iron.yml down docker-compose -f iron.yml up -d docker-compose -f iron.yml stop iron-fish echo "Y" | docker exec -i iron-miner /usr/src/app/bin/ironfish reset echo $(cat iron.default.json) | docker exec -i iron-miner /usr/src/app/bin/ironfish accounts:import docker-compose -f iron.yml restart Thanks ! **Websit:** [https://sacte.com/#/](https://sacte.com/#/) **Twitter:** [https://twitter.com/SacteLabs](https://twitter.com/SacteLabs)

---

*Originally published on [SACTE](https://paragraph.com/@sacte/how-to-run-iron-fish-node-with-docker)*
