Skip to content

Does anyone have Docker running on Arch Linux? Can you tell me how?

I'm looking to use Docker on an Arch Linux server. I'm looking for pointers from others who have done this.

0 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
268bua

17 comments

both the arch wiki and the docker page have instructions for this

https://wiki.archlinux.org/index.php/Docker

http://docs.docker.io/installation/archlinux/

They seem pretty straightforward tbh. Do neither of these work?

6 points
unknown author4 hidden

Well, I haven't given it a shot. I just read the warning that it's in like hard core dev mode and said to myself... let me check the sub before trying something that could mess up my shit.

-10 points

potentially any update could mess up your shit, don't you try these things on a test server or virtual installation first?

1 points
sudo pacman -S docker lxc
gpasswd -a $USER docker

logout - login

sudo systemctl enable docker
sudo systemctl start docker
docker run -it --rm ubuntu:latest

Have fun.

Also if you have relatively small root partition (which I have), I'd recoomend you to bind mount /var/lib/docker to another place.

2 points

Had it running on Arch Linux amd64[1]. But, maybe my setup was off, I encountered ~2 bugs.

update: I may have been using docker wrong when dealing with stopping/persisting containers.

  1. LVM Devmapper would not mount docker images/overlays after a reboot. Meaning, either you never stop your machine (in my case not a real server, just a laptop) or you rebuild the container from scratch.

  2. archlinux docker seems to be using the btrfs backend. Because of bug #1 I tried docker on ubuntu 14.04 amd64. There I realized the aufs backend is much faster, 4x .. maybe more (again my machine is an average laptop).

[1] no supported way to have a 32 bit docker yet, some guys managed to hack the source but it's out of date by now.

1 points
unknown author5 hidden

Would it be smarter to just use a vanilla container?

1 points
  1. Have you tried to commit your permanent changes and use shared volumes for actual changing data your containers dealing with?
1 points

Nope. Too bad I'm not on arch now I can't try your advice.

ps : I wouldn't mind data loss, it's a test db for learning. I wouldn't expect such a deep crash though.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.