You are not logged in.

#1 2015-03-23 19:53:05

zachhuff386
Member
From: Rochester, NY
Registered: 2013-08-10
Posts: 5
Website

Docker Archlinux image with snapshot repository

Archlinux with a large and updated repository is great for Docker containers. But becomes problematic when multiple images are created and updated each having different package versions. I've created an incremental mirror of the official 64 bit repository's with a Docker image that is updated along with the repository every week. The mirror is created using the hard links option in rsync with a format similar to https://wiki.archlinux.org/index.php/Ar … ck_Machine This is useful to anyone using Archlinux inside of docker containers, the current base/archlinux image hasn't been updated in several months.

https://registry.hub.docker.com/u/pritunl/archlinux/

docker run --rm -t -i pritunl/archlinux:latest /bin/bash

Offline

#2 2015-03-23 20:11:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Docker Archlinux image with snapshot repository

Offline

#3 2015-03-24 21:48:47

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Docker Archlinux image with snapshot repository

Could you also run pacman Syu too get updates?

Offline

#4 2015-03-24 22:07:05

zachhuff386
Member
From: Rochester, NY
Registered: 2013-08-10
Posts: 5
Website

Re: Docker Archlinux image with snapshot repository

teateawhy wrote:

Could you also run pacman Syu too get updates?

Running pacman -Syu wouldn't do anything the image will be using a snapshot from the repository that doesn't change. The repository snapshot will only change when the base image is updated or a newer tag is used which will trigger a rebuild of the entire dockerfile using the newer repository snapshot when installing the packages.

Offline

#5 2015-03-24 22:12:51

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Docker Archlinux image with snapshot repository

Run pacman -Syu to update the base image?

Offline

#6 2015-03-24 22:28:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Docker Archlinux image with snapshot repository

teateawhy wrote:

Run pacman -Syu to update the base image?

What exactly are you trying to do?

Offline

#7 2015-03-24 23:11:24

zachhuff386
Member
From: Rochester, NY
Registered: 2013-08-10
Posts: 5
Website

Re: Docker Archlinux image with snapshot repository

teateawhy wrote:

Run pacman -Syu to update the base image?

To update the base image if using "pritunl/archlinux" or "pritunl/archlinux:latest" rebuilding the dockerfile will update to the latest image. If using a specific tag such as "pritunl/archlinux:2015-03-23" changing to a newer tag then rebuilding the dockerfile will update the image.

Offline

Board footer

Powered by FluxBB