prefer to use name

This commit is contained in:
Kuoi 2022-07-20 08:51:50 +01:00 committed by GitHub
parent ada912065c
commit 0afbccb5b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,15 +40,15 @@ Finally, you can install any packages from BioArchLinux
## Enter container ## Enter container
If the container is stoped, `container_id` can be replaced with `container_name` If the container is stoped, `container_name` can be replaced with `container_id`
``` ```
# docker restart container_id # docker restart container_name
# docker exec -it container_id /bin/bash # docker exec -it container_name /bin/bash
``` ```
If the container is running, `container_id` can be replaced with `container_name` If the container is running, `container_name` can be replaced with `container_id`
``` ```
# docker exec -it container_id /bin/bash # docker exec -it container_name /bin/bash
``` ```
## Get container information ## Get container information
``` ```