Arch-playground: Docker image for a lightweight ArchLinux playground
1.7K
Docker image for a lightweight ArchLinux playground
This image is intended for interactive sessions rather than services. The only daemon is sshd at pid=1.
# docker run --detach --name=arch-p -p 60022:22 -v /arch-home:/home --hostname=arch-p1 jokester/arch-playground
^expose sshd ^set hostname
^container name ^persistent volume for $HOME ^the image just built
To configure the playground, start a shell with root in container:
# docker exec -it arch-p sh --login -i
[root@arch-p1 /]#
and set what you need.
A few examples are listed below:
[root@arch-p1 /]# passwd
New password:
Retype new password:
passwd: password updated successfully
[root@arch-p1 /]# useradd -m newuser
[root@arch-p1 /]# passwd newuser
New password:
Retype new password:
passwd: password updated successfully
$ ssh newuser@localhost -p 60022
(if you are prompted with the new host key, type `yes`)
newuser@localhost's password:
[newuser@arch-p1 ~]$
Content type
Image
Digest
Size
587.4 MB
Last updated
over 7 years ago
docker pull jokester/arch-playground