Abarbarian
Acruncher
- Joined
- Sep 30, 2005
- Messages
- 11,023
- Reaction score
- 1,223
For while now I have had an itch to host a Ghost blog running from a Pi located at home.
So have finally made a start.
I am attempting to run Docker on a Pi2 with a ghost instance running in a docker container.The Ghost will be accessible from any pc connected to the internet. If I am successful I think the Pi and my broadband will cope with the/any extra traffic my blog may attract.
I'll assume that you are all familiar with the Raspberry Pi. If not have a read at the link,
https://www.raspberrypi.org/
So what is Docker,
https://docs.docker.com/engine/understanding-docker/
Now you can install a os manually to the Pi and then manually install Docker but there is an easier way. The Docker Pirates have created a very light weight os that already has Docker and associated tools already installed and ready to rock.
In the first link there are instructions for installing HypriotOS v.10.0 you can alter the instructions slightly and install the latest version 1.0.1 from the second link.
http://blog.hypriot.com/post/releasing-HypriotOS-1-0/
https://github.com/hypriot/image-builder-rpi/releases
I am a tad wary of claims made on developers sites however on this occasion the claims are true. Following the simple instructions and using the hypriot/flash tool you do get a working os with a working Docker in a very short time. Time taken depends on your broadband speed and how fast you can read and type/copy.paste.
One of the attractions of Docker is that loads of folk have already made containers with almost all the commonly used programs. Obtaining one to suit your needs is as simple as searching the Docker Hub. If you search the Hub you need to search for arm specific images. Try " rpi/ " in the search bar and you will find 1977 different Pi compatible images.
I looked for a ghost and found this,
https://hub.docker.com/r/de13/rpi-ghost/
Once you have found your choice how do you get it on to your Pi ? Simple, you use the "docker pull " command as below.
So did it install on my Pi ?
So have finally made a start.
I am attempting to run Docker on a Pi2 with a ghost instance running in a docker container.The Ghost will be accessible from any pc connected to the internet. If I am successful I think the Pi and my broadband will cope with the/any extra traffic my blog may attract.
I'll assume that you are all familiar with the Raspberry Pi. If not have a read at the link,
https://www.raspberrypi.org/
So what is Docker,
https://docs.docker.com/engine/understanding-docker/
At its core, Docker provides a way to run almost any application securely isolated in a container. The isolation and security allow you to run many containers simultaneously on your host. The lightweight nature of containers, which run without the extra load of a hypervisor, means you can get more out of your hardware.
Surrounding the container is tooling and a platform which can help you in several ways:
Now you can install a os manually to the Pi and then manually install Docker but there is an easier way. The Docker Pirates have created a very light weight os that already has Docker and associated tools already installed and ready to rock.
In the first link there are instructions for installing HypriotOS v.10.0 you can alter the instructions slightly and install the latest version 1.0.1 from the second link.
http://blog.hypriot.com/post/releasing-HypriotOS-1-0/
https://github.com/hypriot/image-builder-rpi/releases
Today we proudly present our 1.0.0 release of HypriotOS – a container OS that takes you from Zero to Docker within 5 Minutes only, on any device of the complete Raspberry Pi family.
I am a tad wary of claims made on developers sites however on this occasion the claims are true. Following the simple instructions and using the hypriot/flash tool you do get a working os with a working Docker in a very short time. Time taken depends on your broadband speed and how fast you can read and type/copy.paste.
One of the attractions of Docker is that loads of folk have already made containers with almost all the commonly used programs. Obtaining one to suit your needs is as simple as searching the Docker Hub. If you search the Hub you need to search for arm specific images. Try " rpi/ " in the search bar and you will find 1977 different Pi compatible images.
I looked for a ghost and found this,
https://hub.docker.com/r/de13/rpi-ghost/
Once you have found your choice how do you get it on to your Pi ? Simple, you use the "docker pull " command as below.
Code:
docker pull de13/rpi-ghost
So did it install on my Pi ?