Public | Automated Build

Last pushed: a day ago
Short Description
A Docker Container for hosting a Paycoin Wallet
Full Description

docker-paycoin

A simple Docker container based on Ubuntu with the latest Paycoin wallet.

Please report any issues or improvement ideas and say thanks by adding a comment or a star on docker hub.

Warning

Be VERY careful! Improper use, mistakes, errors, etc can result in the loss of data including wallets, encryption passphrases, block chain databases, rpc passwords and any XPY in said wallets. Be VERY careful!

Notes

  • Be warned that if you're trying to use a Mac as your container host, you're probably not going to have a good time because of some volume permission issues.

License

    docker-paycoin A Docker Container for hosting a Paycoin Wallet
    Copyright (C) 2015  Joshua Preston

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

Features

  • Auto generates rpcpassword and walletpassphrase
  • Automatically encrypts the wallet
  • Optionally use existing wallet and passwords

Usage

  1. Install Docker
  2. Create Paycoin Data
    • Set your RPC Password (optional)
    • Update paycoin.conf (optional)
    • Import your wallet.dat (optional)
    • Set your wallet passphrase (optional)
  3. Download and Run the Paycoin Container
  4. Stop the Paycoin Container (optional)
  5. Start the Paycoin Container (optional)
  6. Delete the Paycoin Container (optional)
  7. Updating to the Latest Paycoin Container
  8. Profit

Create Paycoin Data

We're going to mount a volume to store our persistent data, such as our wallet.

mkdir -p /some/path/paycoin/data

Optionally Set your RPC Password

If you have a desire to not use a generated rpc password and you want to specify one, do something like:

echo "some_really_secure_rpcpassword" > /some/path/paycoin/rpcpassword.safe

Optionally Update paycoin.conf

If you took the option to specify an RPC Password, you're going to want to create a paycoin.conf file:

vi /some/path/paycoin/data/paycoin.conf

and make sure the rpcpassword matches the contents of /some/path/paycoin/rpcpassword.safe

rpcpassword=some_really_secure_rpcpassword

Optionally Import your wallet.dat

If you have an existing wallet.dat file, perhaps a backup, you can use it instead of generating a new one.

cp /path/to/my/wallet.dat /some/path/paycoin/data/wallet.dat

Optionally Set your wallet passphrase

If you want to specify your own wallet passphrase instead of using the generated one:

echo "some_really_secure_walletpassphrase" > /some/path/paycoin/walletpassphrase.safe

If you are using an existing wallet, and it is encrypted, you better know the pass phrase. Then you'll need to run:

touch /some/path/paycoin/encrypted.wallet

Download and Run the Paycoin Container

Now that you've got the data setup properly, you can download a run the Paycoin container:

docker run --name paycoin \
  -p 8998:8998 -p 8999:8999 -p 9901:9901 -p 9902:9902 -p 9903:9903 \
  -v /some/path/paycoin:/paycoin \
  -d mrjoshuap/paycoin

Stop the Paycoin Container

You can stop the container with

docker stop paycoin

Start the Paycoin Container

You can start the container later with

docker start paycoin

Delete the Paycoin Container

WARNING: this will delete anything stored inside the container

You can delete the container, first by stopping it, then

docker rm paycoin

Profit

YAY! You WIN! You should now have a functional Paycoin Wallet!

You can now do things like, getting information:

docker exec -t paycoin /usr/local/bin/paycoind getinfo

Updating to the Latest Paycoin Container

From time-to-time I'll update the continer to add new features or fix bugs or update to a new Paycoin wallet release, so you might want to update the container you're using.

Docker Pull Command
Owner
mrjoshuap
Source Repository

Comments (0)