Arch Linux Bootstrap Docker Image (with systemd support)
2.0K
Get the latest version:
docker pull terencewestphal/archlinux:latest
Get a specific version:
docker pull terencewestphal/archlinux:<YYYY.MM.DD>
Modify and build the container image from source:
git clone https://github.com/terencewestphal/docker-archlinux.git
cd docker-archlinux
docker build -t archlinux:<tag> .
Run in detached mode:
docker run --rm \
--detach \
--tmpfs /tmp \
--tmpfs /run \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--cap-add SYS_ADMIN \
--security-opt=seccomp:unconfined \
--hostname archlinux.io \
--name archlinux \
terencewestphal/archlinux:latest
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Options:
--rm Automatically remove the container when it exits
-d, --detach Run container in background and print container ID
--tmpfs list Mount a tmpfs directory
-v, --volume list Bind mount a volume
--cap-add list Add Linux capabilities
--security-opt list Security Options
-h, --hostname string Container host name
--name string Assign a name to the container
Enter container:
docker exec --tty --interactive archlinux zsh
Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
Options:
-t, --tty Allocate a pseudo-TTY
-i, --interactive Keep STDIN open even if not attached
Content type
Image
Digest
Size
170.4 MB
Last updated
over 8 years ago
docker pull terencewestphal/archlinux