BioArchLinux on Docker
Find a file
2022-07-20 06:10:46 +01:00
Dockerfile init 2022-07-20 01:15:04 +01:00
dockerhub.service init 2022-07-20 01:15:04 +01:00
dockerhub.timer init 2022-07-20 01:15:04 +01:00
gen_docker.sh try to fix 2022-07-20 00:23:04 +00:00
man_docker.sh init 2022-07-20 01:15:04 +01:00
README.md reorgnize it 2022-07-20 06:10:46 +01:00

BioArchLinux on Docker

Install docker and start container

Install docker and start it

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

Configure container

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 container

If the container is stoped, container_id can be replaced with container_name

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

If the container is running, container_id can be replaced with container_name

# docker exec -it container_id /bin/bash

Get container information

# docker ps -a

CONTAINER ID   IMAGE                       COMMAND       CREATED       STATUS       PORTS     NAMES
96bfaee1b8cb   bioarchlinux/bioarchlinux   "/bin/bash"   2 hours ago   Up 2 hours             bio