-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (38 loc) · 1.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 启动
# docker-compose up
# docker-compose up --build
# ssh
# docker exec -it rocky-linux-vnc bash
# docker exec -it rocky-linux-vnc zsh
# ROOT权限进去,用户改密码
# docker ps
# docker exec -it --user root rocky-linux-vnc /bin/bash
# docker exec -it --user root rocky-linux-vnc /bin/zsh
# passwd
# mysql57
# docker exec -it --user root portable-mysql57 /bin/bash
# docker inspect portable-mysql57 | grep IPAddres
# redis
# docker exec -it --user root portable-redis /bin/bash
# docker inspect portable-redis | grep IPAddres
version: '3'
services:
rocky-linux-vnc:
image: terwer/rockylinux8:8.5
container_name: rocky-linux-vnc
build:
context: ./rocky-linux-vnc
dockerfile: Dockerfile
ports:
- "5901:5901"
- "8080:8080"
volumes:
- ./rocky-linux-vnc/app:/app
- ./rocky-linux-vnc/workspace:/workspace
- ./rocky-linux-vnc/scripts:/scripts
- ./rocky-linux-vnc/config:/config
- ./rocky-linux-vnc/mytemp:/mytemp
privileged: true
stdin_open: true
tty: true
restart: "no"