Jump to content

Playing Around with Dockerized QT Wallet


Recommended Posts

So I made this https://github.com/buzzkillb/denariusQTdocker

with a command line script of this

mkdir -p ${HOME}/.denarius
xauth nlist ${DISPLAY} | sed -e 's/^..../ffff/' | xauth -f ${XAUTH} nmerge -
docker run -ti --rm -e "XAUTHORITY=${XAUTH}" -e "DISPLAY=${DISPLAY}" -v ${HOME}/.denarius:/denarius -v ${XAUTH}:${XAUTH} -v ${XSOCK}:${XSOCK} --name="denarius-qt-d" --user="${UID}:${GID}" buzzkillb/denariusqt:latest

Which the QT works on Ubuntu 19.04

Going to throw a bunch of random ideas on how to run this on other os's in here.

Link to comment
Share on other sites

From here https://fredrikaverpil.github.io/2016/07/31/docker-for-mac-and-gui-applications/

install docker on MacOS
Install xquartz

brew cask install xquartz

Download Docker for Mac 1.12 stable from https://docs.docker.com/docker-for-mac/, install and run.

Run Xquartz in bash

open -a XQuartz

allow network connections from clients in security tab

Then this to allow connections from local machine

ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $ip

then run docker qt line

docker run -d --name denariusqt -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix buzzkillb/denariusqt:latest

will also want to add volumes to keep the chaindata directory and wallet outside of the container and on host machine

typically located here /Library/Application Support/Denarius

so the below, something like this to run the QT in MacOS

docker run -d --name denariusqt -e DISPLAY=$ip:0 -v `/Library/Application Support/Denarius`:/denarius -v /tmp/.X11-unix:/tmp/.X11-unix buzzkillb/denariusqt:latest


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...