Help With Custom Docker Template for Mysterium Networks


Recommended Posts

Hi, I'm looking for some assistance, I'm sure it's my understanding of docker that's the problem here. I'm trying to create a docker template for Mysterium Networks 

see: https://my.mysterium.network/node-running-guide/docker-guide

 

 Iv'e configured port forwarding to forward the necessary ports to my unraid server & the following command works & everything works 

docker run --cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp \
 --rm --name myst \
 -v $YOUR_MYSTERIUM_DIR:/var/lib/mysterium-node \
 mysteriumnetwork/myst \
 --experiment-natpunching=false \
 service \
 --agreed-terms-and-conditions \
 --openvpn.port=25007

My problem is translating this to an unraid template while not really understanding how it all works. My docker tem
plate runs & I can access the web GUI on port 4449 but the openvpn port does not seem to work 

under extra parameters I added:

--cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp

& for post arguments i added:

--experiment-natpunching=false service --agreed-terms-and-conditions --openvpn.port=25007

 

 

the command generated by unraid is:

/usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='mysterium' --net='host' --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -v '/mnt/user/appdata/mysterium/':'/var/lib/mysterium-node':'rw' --cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp 'mysteriumnetwork/myst:latest' --experiment-natpunching=false service --agreed-terms-and-conditions --openvpn.port=25007

 

Here is the content or my docker template:

<?xml version="1.0"?>
<Container version="2">
  <Name>mysterium</Name>
  <Repository>mysteriumnetwork/myst:latest</Repository>
  <Registry>https://hub.docker.com/r/mysteriumnetwork/mysterium-node/</Registry>
  <Network>host</Network>
  <MyIP/>
  <Shell>sh</Shell>
  <Privileged>true</Privileged>
  <Support/>
  <Project/>
  <Overview>Something here</Overview>
  <Category/>
  <WebUI>http://[IP]:[PORT:4449]/</WebUI>
  <TemplateURL/>
  <Icon>https://avatars2.githubusercontent.com/u/23056638?s=200&amp;amp;v=4</Icon>
  <ExtraParams>--cap-add NET_ADMIN -p 4449:4449 -p 25007:25007/udp</ExtraParams>
  <PostArgs>--experiment-natpunching=false service --agreed-terms-and-conditions --openvpn.port=25007</PostArgs>
  <CPUset/>
  <DateInstalled>1595847980</DateInstalled>
  <DonateText/>
  <DonateLink/>
  <Description>Something here</Description>
  <Networking>
    <Mode>host</Mode>
    <Publish/>
  </Networking>
  <Data>
    <Volume>
      <HostDir>/mnt/user/appdata/mysterium/</HostDir>
      <ContainerDir>/var/lib/mysterium-node</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
  </Data>
  <Environment/>
  <Labels/>
  <Config Name="Data Path" Target="/var/lib/mysterium-node" Default="/mnt/user/appdata/mysterium/" Mode="rw" Description="Container Path: /var/lib/mysterium-node" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/mysterium/</Config>
</Container>

Here's hoping someone with more experience than myself can offer some input. Any & all advice would be greatly appreciated.

Link to comment
  • 8 months later...
  • 2 weeks later...

I got it working by pulling in the docker container from apps by searching for "myst"

Then in the config:


Name: myst

Repository: mysteriumnetwork/myst
Docker Hub URL: https://hub.docker.com/r/mysteriumnetwork/myst/
Icon URL: https://avatars2.githubusercontent.com/u/23056638?s=200&amp;amp;v=4
WebUI: http://[IP]:[PORT:4449]
Extra Parameters: --cap-add NET_ADMIN -p 4449:4449 -p 1194:1194/udp
Post Arguments: service --agreed-terms-and-conditions --openvpn.port=1194
Network Type: host
Console shell command: shell
Privileged: off
Config: /mnt/user/appdata/myst/ (Container Path: /var/lib/mysterium-node)

Then in router forward both udp/tcp for ports 1194 and 4449 to your server ip address.

You could likely then submit it to the unraid repo:
Stop the server, then go into unraid docker settings and enable dev mode and pull the generated xml, then throw it on github, and contact the package repo admin with the details.

  • Like 1
Link to comment
<?xml version="1.0"?>
<Container version="2">
  <Name>myst</Name>
  <Repository>mysteriumnetwork/myst</Repository>
  <Registry>https://hub.docker.com/r/mysteriumnetwork/myst/</Registry>
  <Network>host</Network>
  <MyIP/>
  <Shell>sh</Shell>
  <Privileged>false</Privileged>
  <Support>https://hub.docker.com/r/mysteriumnetwork/myst/</Support>
  <Project/>
  <Overview>Server and Client for decentralised VPN built on blockchain   Converted By Community Applications   Always verify this template (and values) against the dockerhub support page for the container</Overview>
  <Category>Network:VPN</Category>
  <WebUI>http://[IP]:[PORT:4449]</WebUI>
  <TemplateURL/>
  <Icon>https://avatars2.githubusercontent.com/u/23056638?s=200&amp;amp;amp;amp;v=4</Icon>
  <ExtraParams>--cap-add NET_ADMIN -p 4449:4449 -p 1194:1194/udp</ExtraParams>
  <PostArgs>service --agreed-terms-and-conditions --openvpn.port=1194</PostArgs>
  <CPUset/>
  <DateInstalled>1619372037</DateInstalled>
  <DonateText/>
  <DonateLink/>
  <Description>Server and Client for decentralised VPN built on blockchain   Converted By Community Applications   Always verify this template (and values) against the dockerhub support page for the container</Description>
  <Networking>
    <Mode>host</Mode>
    <Publish/>
  </Networking>
  <Data>
    <Volume>
      <HostDir>/mnt/user/appdata/myst/</HostDir>
      <ContainerDir>/var/lib/mysterium-node</ContainerDir>
      <Mode>rw</Mode>
    </Volume>
  </Data>
  <Environment/>
  <Labels/>
  <Config Name="Config" Target="/var/lib/mysterium-node" Default="" Mode="rw" Description="Container Path: /var/lib/mysterium-node" Type="Path" Display="always" Required="false" Mask="false">/mnt/user/appdata/myst/</Config>
</Container>

 

Link to comment
  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.