Skip to content

Commit

Permalink
Update 08 docker常用命令.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Q10Viking committed Mar 16, 2024
1 parent 34e9193 commit 1ae78b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Docker/08 docker常用命令.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ root 2124 2030 0

```sh
docker exec -it 6180a4fd4a11 /bin/bash #(有的容器需要把 /bin/bash 换成 sh)
# 以root用户进入
docker exec -it --user root <container id> /bin/bash
```

## **容器内安装vim、ping、ifconfig等指令**👍
Expand Down

0 comments on commit 1ae78b6

Please sign in to comment.