Tuesday, August 4, 2015

Building an Arch Linux Docker base image for your Raspberry Pi 2

So I wanted to toy around a bit with my Raspberry Pi 2 running some Docker containers.

I did not, however, wanted to download some ready made base image. First of all, I don't know where it has been, who made it and whether what's in there is legit. Second, the base images out there seem to be based on the Raspberry Pi 2 operating system images and about twice the size they should be (over 500MiB instead of about 250MiB).

So I set off to create my own Raspberry Pi 2 base image (armv7h) for Arch Linux. These are my notes to make this a bit easier you than it was for me.

There is this file you need to download, together with this file. Put them in a directory together. I like to edit the second one to show the correct architecture (armv7h on line 22), but that's not strictly necessary.

What *is* strictly necessary though, is to edit the first file and edit line 56, which currently reads 
set timeout 60
 and change that to something like
set timeout 300
This is because the 60 second timeout that is there by default is fine for fast disks in x86_64 machines, but will not do for your Pi 2. The timeout should accomodate for the pacstrap command to finish, which installs about 86 packages. Even with a fast SD card in your Pi 2, 60 seconds will not cut it.

If you up the timeout to 300, the process will complete nicely, giving you a proper armv7h Docker base image!

Second thing you will want to do, is to edit the file again and change line 71 where it reads
Server = https://mirrors.kernel.org/archlinux/\$repo/os/\$arch
to
Server = http://mirror.archlinuxarm.org/\$arch/\$repo
If you don't make that change, you'll never be able to install packages from the armv7h repositories.

Now go and run
./mkimage-arch.sh
Happy containering! :)

21 comments:

Deep Learning said...

I read this article. I think You put a lot of effort to create this article. I appreciate your work.
thesis Writing Service

Rimon said...


This particular post is really very interesting. It has a really great piece of Data,
I enjoyed very well with this particular blog it has very useful information
I like to much the style of this Article
that's really nice and informative article. Thank You.
Your Garden Expart

Dhruv said...


I love this content keep sharing !!!
Fashion Fabrics provide a wide range of quality fabric. Lace fabric, Prints, laces, net embroidery, khadi, denim and more.
Buy Indian Fabric By The Yard, Indian Fabric Store Online
Fabric Store, fabric, laces fabric, faric lace, print fabric, printed fabric , laces in india, lace fabric in india, fabric store in india, online fabric in india, fashion fabrics online fabric, laces, Printed, Solids, Textured, Handloom, Cotton, Rayon, Crepe, Woolen, Velvet, Gold Block, Embroidery, rayon fabric, georgette fabric, polyester fabric, cotton fabric, fabric online, linen fabric, fabric design, silk fabric, lycra fabric, jacquard fabric, velvet fabric, ikat fabric, nylon fabric, knit fabric, knit fabric, chiffon fabric, woven fabric, upholstery fabric, online fabric store, textile shop near me, fabric stores, wool fabric, fabric material

Teknoloji Haberleri said...

Teknoloji ve İnternet dünyasından en son gelişmeleri güncel olarak takip edin.

Teknoloji Haberleri
En Son Teknoloji Haberleri
En Güncel Teknoloji Haberleri
Güncel Teknoloji Haberleri
Teknoloji ve İnternet Haberleri

sophiaillebela said...

Welcome to our store because we know exactly how you feel in all your pregnancy stages and we are working hard to provide you fashion clothes and innovative accessories Buy kids clothes online that make them feel comfortable and chill. We offer a vast selection of boy, girl and toys beast designs and our product our focus is always Lisshire kids, so it is important for us more update on sites.
Magic vibes unicorn kid girls tee
Gingham draped swimsuit
Pink draped bikini
Baby sling wrap baby back carrier
Giraffe finger puppet
Puma finger puppet

bronmowgli said...

cleantechco Management Incorporated Hard Floor cleaning Connecticut developed a cleaning system for those facilities that only need partial cleantechco services. We have developed specialized cleaning teams to meet the demands of partial cleaning cleantechco services. The frequency of cleaning can be 3 to 4 times per week, 1 time per week or even 2 time per month. Hard Floor cleaning Pennsylvania We understand no two buildings are ever the same, that’s why we will customize a set of cleaning specifications for your needs. We have developed specialized cleaning teams to meet the Green Cleaning services New York of these clients. CALL US TODAY TOLL FREE AT (347)268-4606 TO SCHEDULE YOUR FREE cleantechco Cleaning Services Today.

NemoCleaning said...

Nemoclean is the solution for those people who think move in and move out is a pain. Our company offer move in and move out cleaning services in different areas of USA. You can hire Nemoclean for move out cleaning services in Ohio at affordable price.

Due to best and quality services provided by our company we are the leading agency for moving service in Ohio. Call us any time or visit our website to know more details.
home cleaners in Columbus

lussiangray said...

Puppawradise is a luxury specialty retail pet boutique dedicated to helping pet owners find everything they fancy with convenience and ease, all in one place, Buy cat toys online for their stylish dogs. Happy dogs and cat their smitten pet parents dig here for fashion forward designer dog and Cat apparel and clothes, one of a kind fashionable pet carriers, designer dog accessories, collars & harnesses, eco-friendly grooming & spa care, Buy Cat bed sofa house novelty dog toys,self grooming cat brush premium pet foods Funny Fur is dedicated to offering stylish, highly functional, and environmental friendly products for urban pet living and lifestyle. At Funny Fur, you can turn your pupy into a prince .

Henry Wilson said...

Thank you for sharing this useful information and keep writing this type post. We have been taking our Mobile car washing Phoenix near you. Keep your vehicle totally cleaned at each level. Whether or not it is applying wax to the paint or cleaning inside, every movement of the cycles requires putting aside the additional push to fastidiousness.

Mobile car washing Arizona business might be a savvy on account of make huge loads of money. In any case, you might want to take a position sensible cash at first. The components of the vehicle wash business is enormous. The interest for money wash close by vehicle itemizing administrations is furthermore developing very fast.

Mobile car detailing Arizona should be close by, simple to book, and easy for you to appreciate. Our versatile auto specifying administrations are worked around making it basic for the regular individual to get top quality auto enumerating in their own garage.

AlbertAlexander said...

Thank you for sharing this useful information and keep writing this type post. we offers a best place to Buy sex toys online at affordable price. Shop for the most recent sex toys and underwear on the web. This is the online retailer that americans come to for everything grown-up, sourced from more than hundred top worldwide brands.

We provide a best platform to Buy sex handcuffs online at cheap price. Sex binds and limitations are utilized in the room to sleeve or secure a sweetheart. Binds are frequently utilized in servitude play, as subjugation restrictions bring joy during foreplay and sex.

At here you can find a best option to buy Fetish Fantasy Gold Deluxe Furry Cluffs online at best price. We carry a full line of different bondage fetish handcuffs that allow you or your partner to be safely restrained during your bedroom soirees. Some of your options include furry handcuffs in all different styles and colors, classic metal handcuffs, rope cuffs, silk wrist and ankle restraints, elegant linked chain handcuffs and much more.

Here you can purchase Fetish Fantasy Limited Edition Luv Cuffs online at affordable price. Some of your options include furry handcuffs in all different styles and colors, classic metal handcuffs, rope cuffs, silk wrist and ankle restraints, elegant linked chain handcuffs and much more.

JOSEPHJON said...

Melia-beauty is one of the Buy cordless hair curler top websites out there that connects you with lots of Beauty product you can get all makeup and therapy products.You will find links to the latest and best quality beauty and cosmetics products all over the USA.You can register with this Buy vibration eye massager US based website and have new vibration eye massager and beauty products Launch directly to melia-beauty online store and By taking advantage of the store through this website, you Buy portable eye massager can really save some of the money you spend on makeup like foundation, eyeliners, pdt led facial mask, etc.

Harculscandy said...

Make your baby shower Buy party banner shine with a craft99us Baby shower banner are a fun way of welcom to the newborn babies into the world and healping the especially mother.The mother who is thinking about the coming child to Buy party favors bring her new ways of showers and candles, decarsions, candle holder stand and glass cake stand and pasierar, neckless and artificial flowers book and other products Buy baptism favors for her baby and craft99us Your baby shower decorations will look delightfult with this table sign.

lussiangray said...

Find Buy Pets accessories Online Buy pet dog beds online Now at puppawradise.com, Welcome to puppawradise Find Buy Pets Toys Online Today.Buy self grooming cat brush Dogs and Cat are very smart companions, and having a point system can help train Buy small pet toys online them properly. But you should always know what goes into your dogs treats with puppawradise, so why not try these out.Find and Compare How To Buy Dogs online. Buy small pets carrier online Save now at puppawradise Compare Online· Cheap Prices, Full Offer.

Elevateshop Express said...

elevateshopexpress products are highly effective and will work as a moisturizer, Rice Bran & Coconut Massage Oil, conditioner, mask and a serum. Our customers tell us that we are very professional, knowledgeable and friendly. Butter & Almond Lip Balm and Coconut Massage Oil and Shea Butter & Almond Lip Balm There are no hidden charges and no hidden costs. We offer a free 24-hour consultation to make sure you are interested in our products. We also offer a heavy discount for new customers. Simply Hydrating Light Moisturizer Some of our products are exclusive to our online elevateshopexpress.com please visit and geat more offers .

Mark Nany said...

sarinasuon Get up to 30 discount on Buy baby clothes online & Buy kids toys online, Shoes products. Buy clothes and shoes for babies & kids at sarinasuon.com. Shop from popular baby & kids clothing and newborn baby swaddle, wooden toys footwear also Newborn baby clothing online brands for boys and girls. Buy baby boys clothes online, Buy baby girls clothes online We see that you have personalized your site experience sarinasuon.com by adding your child's date of birth and gender on sarinasuon.com

DOOKIE DUCKIE said...

Thank you for sharing this useful information and keep writing this type post. we offers a best place to buy Magic growing christmas tree online at cheap rate. Here you can also purchase Large stock acrylic periodic table, electric hair braider, Auto step shaker smartphone holder, DC 5V 2A USB ultrasonic cleaner, Tetris stackable led table light, 2021 Bluetooth call smart watch 1.68 inch, Waterproof sleep heart rate watches and Electric hair braider plait automatic twist braider styling braiding machine at affordable price.

You can find best platform to buy Automatic hair braider electric diy hair weave machine twist knitting roll online at cheap rate. Here you can also purchase Electric hair braider plait automatic twist braider styling braiding machine and Acrylic periodic table display with real elements kids teaching school day birthday gifts at affordable price.

oscarsmith said...

Wimp solutions is an online store for quality fitness equipment. Here you can get all kind of exercise equipment for your body. To Buy exercise equipment online, Buy fitness waist trainer online, Buy hand grip trainer online visit our online store.

Here you can also get Anti skid lifting training gloves at best price. So if you interested buy any equipment visit our website for more detail.

Agility training ladder straps

caryroony said...

If you are looking for an online store where latest products and quality is available then the merbang essentials is best for you. here you can Buy home decor items online, Buy kitchen gadgets online, Buy ladies matching sets online, Buy women's top online, Buy gemini maxi dress online in affordable prices.

Mermaids Exist Wall Sticker

Garybrown said...

The main aim of Acedredlo is make the life easier and provide the best service in our city. So anyone looking for Small Business loans in Denver, Private equity firms Colorado then we are the best option.

Our company also providing the service like Revenue Generation Services Denver, Business loan lenders in Colorado, Merchant services in Denver. For more detail visit our website.

Revenue Generation Services Colorado

Garybrown said...

Are looking to Buy men t shirts online? krafty fox kendra is an online store where you can buy all latest collection of fashion. Visit our online store and order according to you choice.

Here you can order Aquaman Logo Short Sleeve Junior Sheer online for you. Just visit our website and select your choice.

Wake Up Adult Pull Over Hoodie

jonnymark said...

Earth seed equity is well known for its services in Bay Area. We are Inclusion Consultant in Bay Area. If you are looking for best Organizational Development Consultant in Bay Area, then Earth seed equity is best for you.

Sexual and Reproductive Health Justice Advocate