Docker

1sudo pacman -S docker
1sudo usermod -aG docker $USER
1sudo systemctl start docker

You need to either log out and back in again to be in the docker group, or run everything as root.

1# docker info

This should show you things are working.

Search for a distro you want

1docker search debian

If you get a hit, pull it.

1docker pull debian

Then run a live image:

1docker run -it debian

Delete

Check currently running containers with

1docker ps

Check all containers with

1docker ps -a

Now we can get a list of all containers.

To delete one, take the id, e.g. '97796727e883', and run:

1docker rm 97796727e883

Networking

Get a list of docker container ips

1docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' *container_name_or_id*