1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
docker exec -it xxxx sh # 进入容器
docker compose exec -it --user root xxx bash #
docker run --restart=always -d --rm -it \
--name xxx -h hostname \
-p 3000:3000 --network xxxnet1 alpine:3.11.6 sh
# --net="host"
# --restart=always
# -p 1000:1000
# -e AENV='xxx2' -e DB_HOST=standalone
# --entrypoint sh 替代 entrypoint 参数
|