I am testing some Bitcoin related code and in order to test it have installed bitcoin-testnet-box within a docker container.
I use this guide: https://registry.hub.docker.com/u/freewil/bitcoin-testnet-box/
I pulled and run the docker without any problems.
BUT, I can not edit the bitcoin.conf files in their directories because I dont have an editor like NANO installed.
I would like to do:
sudo apt-get install nano
But it's not working. How can I fix that?
You can create your own Dockerfile to build on freewil/bitcoin-testnet-box
Dockerfile
FROM freewil/bitcoin-testnet-box
MAINTAINER dude
USER root
RUN apt-get update && apt-get install nano
In the directory with your Dockerfile run:
docker build -t "mybitcoinimage" .
and start the container
docker run -it mybitcoinimage /bin/bash
And you are in with root access and nano.