docker/README.md
2022-07-20 04:21:30 +01:00

1.2 KiB

BioArchLinux on Docker

Install docker and pull image

Install docker and start it

docker pull bioarchlinux/bioarchlinux
docker run -it --name container_name --restart=always bioarchlinux/bioarchlinux /bin/bash

Choose mirror

then you need to choose a mirror of archlinux and bioarchlinux

choose mirror of archlinux from here and run the following command ( take sdu mirror as the example)

echo 'Server = https://mirrors.sdu.edu.cn/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist

choose mirror bioarchlinux from here and run the following command ( take sdu mirror as the example)

echo 'Server = https://mirrors.sdu.edu.cn/bioarchlinux/$arch' > /etc/pacman.d/mirrorlist.bio

Use it

Finally, you can install any packages from BioArchLinux

pacman -Syu
pacman -S foo

Exit

exit

Enter

If the container is stoped

docker restart container_id
docker exec -it container_id/container_name /bin/bash

If the container is running

docker exec -it container_id/container_name /bin/bash