From 8865575e2fe0a86e4031b36c399ed72d996ac970 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Wed, 20 Jul 2022 04:28:08 +0100 Subject: [PATCH] make it understandable --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 695d492..c21fd91 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Install [docker](https://www.docker.com/) and start it ``` -docker pull bioarchlinux/bioarchlinux -docker run -it --name container_name --restart=always bioarchlinux/bioarchlinux /bin/bash +# docker pull bioarchlinux/bioarchlinux +# docker run -it --name container_name --restart=always bioarchlinux/bioarchlinux /bin/bash ``` ## Choose mirror @@ -15,37 +15,37 @@ then you need to choose a mirror of archlinux and bioarchlinux choose mirror of archlinux from [here](https://archlinux.org/mirrorlist/) 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 +# echo 'Server = https://mirrors.sdu.edu.cn/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist ``` choose mirror bioarchlinux from [here](https://raw.githubusercontent.com/BioArchLinux/mirror/main/mirrorlist.bio) 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 +# 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 +# pacman -Syu +# pacman -S foo ``` ## Exit ``` -exit +# exit ``` ## Enter -If the container is stoped +If the container is stoped, `container_id` can be replaced with `container_name` ``` -docker restart container_id -docker exec -it container_id/container_name /bin/bash +# docker restart container_id +# docker exec -it container_id /bin/bash ``` -If the container is running +If the container is running, `container_id` can be replaced with `container_name` ``` -docker exec -it container_id/container_name /bin/bash +# docker exec -it container_id /bin/bash ```