# \[V3\] Errors with cert-issuer on Docker

**URL:** <https://community.blockcerts.org/t/v3-errors-with-cert-issuer-on-docker/3301>\
**Category:** Technical\
**Created:** [October 19, 2022, 9:30am UTC](https://community.blockcerts.org/t/v3-errors-with-cert-issuer-on-docker/3301 "2022-10-19T09:30:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dallarosa](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dallarosa](https://community.blockcerts.org/u/dallarosa)\
**Post date:** [October 19, 2022, 9:30am UTC](https://community.blockcerts.org/t/v3-errors-with-cert-issuer-on-docker/3301/1 "2022-10-19T09:30:05Z")

</div>

Hi everyone,

I’m creating a new product and I’m looking to have Blockcerts to be a part of it.  
I’m trying to run the cert-issuer but I’m having problems with the instructions in the repo’s README.

When I run docker run, after building the container I get the following error:  
`"Error: Config setting for -rpcport only applied on regtest network when in [regtest] section."`

It seems this is related to the bitcoin side of things but I’m pretty new with all this and as I have no indications on where the error is coming from I have no idea how to fix it.

I’ve seen the same error in the thread below, but no ways to fix it:

> [@The cert-issuer failed while building docker image](https://community.blockcerts.org/t/the-cert-issuer-failed-while-building-docker-image/3246):
>
> The cert-issuer failed while building docker image: Error: Config setting for -rpcport only applied on regtest network when in [regtest] section. Please help

Can anyone help a newb in need?

Thank you

Francisco

---

<div class="post-metadata">

**Author:** ![dallarosa](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dallarosa](https://community.blockcerts.org/u/dallarosa)\
**Post date:** [October 19, 2022, 4:24pm UTC](https://community.blockcerts.org/t/v3-errors-with-cert-issuer-on-docker/3301/2 "2022-10-19T16:24:38Z")

</div>

Ok!  
I was able to solve my own problem.  
It seems that for the bitcoin configurations to work, you need to add a `[regtest]` to the top of the bitcoin.conf. That will fix the error.

The change is in the Dockerfile

> $‘rpcuser=foo\nrpcpassword=bar\nrpcport=8332\nregtest=1\nrelaypriority=0\nrpcallowip=127.0.0.1\nrpcconnect=127.0.0.1\n’ \> /root/.bitcoin/bitcoin.conf \

becomes

> $‘[regtest]\nrpcuser=foo\nrpcpassword=bar\nrpcport=8332\nregtest=1\nrelaypriority=0\nrpcallowip=127.0.0.1\nrpcconnect=127.0.0.1\n’ \> /root/.bitcoin/bitcoin.conf \

I’ve also sent a Pull Request with the fix

> <https://github.com/blockchain-certificates/cert-issuer/pull/248>
>
> Added the header \[regtest\] to bitcoin.conf, fixing the error:
> 
> "Error: Config …setting for -rpcport only applied on regtest network when in \[regtest\] section."

---

<div class="post-metadata">

**Author:** ![lemoustachiste](https://avatars.discourse-cdn.com/v4/letter/l/7c8e57/32.png) [@lemoustachiste](https://community.blockcerts.org/u/lemoustachiste)\
**Post date:** [October 19, 2022, 5:14pm UTC](https://community.blockcerts.org/t/v3-errors-with-cert-issuer-on-docker/3301/3 "2022-10-19T17:14:54Z")

</div>

Thanks @dallarosa for figuring out the issue and your contribution
