# Custom docker image regtest 24.0.1

In order to have the latest Bitcoin image, 24.0.1, have to use a custom image. Can directly change to the Deployer's one and start with step 5, or deploy yours by following all the steps.

1. build the docker image by running this in location of Bitcoin.dockerfile wanted and selecting to name it bitcoin with tag local

{% code overflow="wrap" %}

```bash
docker build -f /Users/deployer/Desktop/DegenSoftware/rpc-22/clarinet/dockerfiles/devnet/Bitcoin.dockerfile -t bitcoin:local .
```

{% endcode %}

2. to upload it on docker hub it has to be of the following format: docker\_user/repository:tag

```bash
docker tag bitcoin:local bowtieddeployer/bitcoin:24.0.1
```

3. Create a repository using the docker website

{% embed url="<https://hub.docker.com/repositories/bowtieddeployer>" %}

4. Push image to repository

```bash
docker push bowtieddeployer/bitcoin:24.0.1
```

5. Change the image used in `Devnet.toml`

```toml
bitcoin_node_image_url = "bowtieddeployer/bitcoin:24.0.1"
```

6. Check version by running

```bash
# in clarinet project terminal 
clarinet integrate
# in docker image terminal
bitcoin-cli --version
```
