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! :)

41 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

Dave Brown 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.

NemoClean LLC 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.

Albert Alexander 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

Mike Jones 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

Earthseedequity said...

Thank you for sharing this useful information and keep writing this type post. we offers a Best place to buy laser projector online at best rate. Here you can also purchase Galaxy star projector, galaxy projector, night light projector, star projector and Galaxy Laser Projector online at affordable price.

Arthur Lewis said...

Thank you for sharing this useful information and keep writing this type post. we provides best options to Buy floral dresses for women online at cheap rate. Here you can also purchase party dresses for women, Backless maxi dresses, gowns for women, maxi dresses, Elegant dresses for women, elegant dresses, backless dress and Criss cross dresses for women online at affordable price.

You can find a best platform to buy Halter Backless Maxi Dress online at best rate. Here you can also purchase V-Neck Elegant Party Gowns, Sheer Mesh Embroidered Dress, V Neck Backless Dress, Kaftan Womens Maxi Dress, Fashion Print Evening Night Club Dress, Floral Print Dress, Criss Cross Dress and Maxi Gown Dresses online.

upscsylabus said...

everyone wants to decorate their home especially for special occasions like marrige , birthday party decorations But we confused where to or what Buy party decorations items like
Baby Shower Pacifier Necklace
etc. For This problem craft99us has a solution craft99us provide best items at reasonable price. with craft99us you can
Baby Shower Pacifier Necklace
,Buy quinceanera, Buy wedding cake stand, Buy cake stand, Buy wedding centerpieces, Buy table centerpieces, Buy baby shower banner, Buy party banner, Buy party favors, Buy baptism favors, Buy baby shower favors, Buy wedding favors, Buy candle holder stand, Buy baby shower necklace, Buy pacifier necklace, Buy wedding card box, Buy centerpiece decorations, Buy party decorationsand lots of more.

upscsylabus said...



Everyone wants to decorate their home especially for special occasions like marrige , birthday party decorations But we confused where to or what Buy party decorations items like Silver Wire Metal Crown
etc. For This problem craft99us has a solution craft99us provide best items at reasonable price. with craft99us you can Buy Silver Wire Metal Crown

Our other products

Buy quinceanera
Buy wedding cake stand
Buy cake stand
Buy wedding centerpieces
Buy table centerpieces
Buy baby shower banner,
Buy party banner
Buy party favors
Buy baptism favors
Buy baby shower favors
Buy wedding favors
Buy candle holder stand
Buy baby shower necklace
Buy pacifier necklace
Buy wedding card box
Buy centerpiece decorations
Silver Wire Metal Crown


Henry Wilson said...

Thank you for sharing this useful information and keep writing this type post. We offers Doorstep car washing Arizona, vehicle wash, vehicle itemizing administrations. The Best ceramic coating in Phoenix for vehicles will viably ensure and safeguard the paintwork for an all-encompassing time of your time, while likewise keeping your vehicle looking astonishing. A portable vehicle wash business offers business people a chance to begin their own organization with negligible expenses via looking through Mobile car wash near me. Since these activities are portable, they have practically zero overhead and just somewhat number of workers, giving the proprietor an open door for a quick beginning. Mobile car washing Arizona business might be a brilliant gratitude to make huge loads of money.

Maxlarry Benson said...

Really it was an awesome article. Thank you so much for the post it is very helpful, Keep posting such type of articles please visit at https://phenomenalbundles.com/


Buy synthetic hair extensions

Hair wigs for women online

johnsmith said...

Thank you for sharing this useful information and keep writing this type post. we offers a best place to Buy Original Paintings Online at affordable price. we provide a Best Original Paintings Online at cheap price. At here you can find a Best place to buy original paintings online at best price. This is a Best place to buy original paintings online at Originalpaintingnewartist.com, in case you are hoping to purchase compositions on the web, we have an incredible choice of unique craftsmanship available to be purchased from set up names and arising specialists.

Top Notch Accesories said...

Thank you for sharing this useful information and keep writing this type post. We offers flower wall flower pot, wall mounted plant hanger online. You can know more please visit https://www.topnotchaccesories.com/


Mobile accessories online store

INIU Magnetic Micro USB Type C Cable

Yeliah Skin and Beauty said...

I am really impressed with your blog ,such great & useful knowledge you mentioned here. Your post is very informative. I have read all your posts and all are very informative. Thanks for sharing and keep it up like this. You can know more please visit https://yeliahskinandbeauty.com/


Buy beauty products online

Buy nail gel solution

WINDSOR JEWELS said...

Really it was an awesome article. Thank you so much for the post it is very helpful, Keep posting such type of articles please visit at https://thewindsorjewels.com/.


Buy vintage watches online

Rolex oyster perpetual steel

embracefengshui said...

Thank you for sharing this useful information and keep writing this type post. We offers Tub seat for babies online Buy Diaper Bags Online and Bath tub for babies online, utilizing Retractable Bathtub administration offers Baby Nappy Backpacks Online and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.



Tub seat backpack


Retractable Bathtub


Tub Seat


Nappy Backpack

Unknown said...

Thank you for sharing this useful information and keep writing this type post. We offers Buy car phone charger online Shop wireless charger online and Buy wireless earphones online, utilizing Shop wireless earbuds online administration offers Waterproof earbuds with dual microphone and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.



Waterproof wireless music stereo earbuds


Low latency sports wireless earbuds


3 in 1 wireless charger for apple watch


Gravity phone holder for Samsung S10

Unknown said...

Thank you for sharing this useful information and keep writing this type post. We offers Automatic Portable Turkish Coffee Maker Portable Hand Press Coffee Machine and Infuser Stainless Steel Tea Kettle, utilizing Infuser Heat Resistant Teaware administration offers Shop electric garlic crusher with dual microphone and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.



Electric Mini Food Press Garlic Crusher


Plastic Sealed Cans Kitchen Storage Box


Mr and Mrs Ceramic Coffee Mugs


Screw Shape Ceramic Coffee Mugs

Beats On Feet said...

Thank you for sharing this valuable information and keep writing this type post. If are you looking for a choreographer in Delhi NCR then visit us today.
Wedding choreographer in Delhi
Wedding Dance Choreographer in Noida
Wedding Choreographer in Gurgaon

Unknown said...

Thank you for sharing this useful information and keep writing this type post. We offers Buy coffee maker online buy coffee mugs online for single serve coffee capsules, utilizing buy portable coffee maker administration offers casual office coffee tumbler with dual microphone and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.

5 Bar Pressure Espresso Coffee Machine

Mini Coffee Machine Manual Coffee Maker

White Novelty Coffee Cup

White Novelty Coffee Cup

bamsi said...

Thank you for sharing this useful information and keep writing this type post. We offers Best t shirts for young kids Stylish t shirts for gents online and Stylish t shirts for ladies online, utilizing Best t shirts online shopping administration offers Shop casual t shirts online and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.

Be Your Label T Shirt Men

Be Your Best Version T Shirt Men

King in King Mode T Shirt Men

Be More Fashionable With Us T Shirt Women

Unknown said...

Thank you for sharing this useful information and keep writing this type post. We offers Buy women's dresses online Buy women's leggings online and Ladies night dress online, utilizing Shop ladies swimwear online, administration offers Buy christmas dress online tool with dual microphone and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.

Skeleton rings halloween jewelry

Men's rash guard

Bandeau bikinis women swimsuit

Genuine leather luxury handbags

Unknown said...

Thank you for sharing this useful information and keep writing this type post. We offers Best home accessories online Outdoor Solar String Lights and Buy Christmas Decor for Home, utilizing Chandelier Lighting Pendant Lamp administration offers Waterproof Pet Dog Travel Mat with dual microphone and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.

Christmas Ornament Wooden Hanging Pendants Star

Hello Kitty lace ceramic plate

Nail clipper cute portable set

Modern LED Ceiling Chandelier Lighting Living

embracefengshui said...

Thank you for sharing this useful information and keep writing this type post. We offers Baby Nappy Backpacks Online Buy Diaper Bags Online and Bath tub for babies online, utilizing Retractable Bathtub administration offers Baby Nappy Backpacks Online and working experts an advantageous method to keep their vehicles fit as a fiddle without removing time from their bustling timetables.

Tub seat backpack

Retractable Bathtub

Tub Seat

Nappy Backpack

Mike Jones said...

Thank you for sharing this useful information and keep writing this type post. we offers The Best Computer Hardware Support Virginia, USA. Here you can get IT Support, Computer Services, IT Service Provider, Business IT Solutions, Data Security Services, VOIP service providers, Network Security Services, Network Security provider, Endpoint security service, IT Support services near me and Cloud service provider in Virginia.

Data Security Services in Virginia
VOIP & Mobile services Woodbridge
Endpoint security provider Washington DC
Cloud service provider Virginia