Skip to content

Instantly share code, notes, and snippets.

@nguyendat
Created December 5, 2019 04:37
Show Gist options
  • Save nguyendat/d0b94c41a25f7f78dc0e65c2b460a768 to your computer and use it in GitHub Desktop.
Save nguyendat/d0b94c41a25f7f78dc0e65c2b460a768 to your computer and use it in GitHub Desktop.
# docker run -t -i --rm ubuntu:14.04 /bin/bash
# apt-get update && apt-get install -y software-properties-common
# add-apt-repository ppa:wireguard/wireguard
# apt-get update
# apt-get install wireguard
# umask 077
# wg genkey | tee privatekey | wg pubkey > publickey
# docker cp <containerId>:/src /dest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment