Skip to content

Instantly share code, notes, and snippets.

@oneman
Last active December 29, 2015 18:29
Show Gist options
  • Save oneman/7711374 to your computer and use it in GitHub Desktop.
Save oneman/7711374 to your computer and use it in GitHub Desktop.
Krad Radio Docker Test
Get docker and install it.
Enable IP Forwarding:
% sudo sysctl -w net.ipv4.ip_forward=1
Run the docker daemon:
% sudo docker -d &
Get the Krad Radio test image:
% wget http://europa.kradradio.com:8040/oneman/kradtest_docker.tar.xz
% sha1sum kradtest_docker.tar.xz
fc51566462709736be196c0d40768a2f1d418f45 kradtest_docker.tar.xz
Import the image:
% xzcat kradtest_docker.tar.xz | sudo docker import -
Get the image id from your import:
% sudo docker images
You will see the id right in the middle!
Run the Krad Radio test image in a new container:
% sudo docker run -d -name kradtest -p 4000:4000 -u oneman IMAGE_ID_GO_HERE /home/oneman/krad_start.sh
Goto: http://localhost:4000 in Firefox and see that it loaded
Now kill and remove the container:
% sudo docker kill kradtest && sudo docker rm kradtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment