change port to 2222

This commit is contained in:
2024-06-20 17:29:07 +08:00
parent b61e3b5d04
commit 4572f2cb1c
3 changed files with 4 additions and 3 deletions

View File

@@ -372,4 +372,5 @@ EOT
# EOT # EOT
# 启动 ssh 服务 # 启动 ssh 服务
CMD ["/bin/bash", "-c", "service ssh start; tail -f /dev/null"] # CMD ["/bin/bash", "-c", "service ssh start; tail -f /dev/null"]
CMD ["/usr/sbin/sshd", "-D"]

View File

@@ -26,7 +26,7 @@ services:
image: hotwa/deepspeed:test image: hotwa/deepspeed:test
shm_size: '32gb' shm_size: '32gb'
ports: ports:
- 3227:22 - 3227:2222
environment: environment:
- NVIDIA_VISIBLE_DEVICES=all - NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility - NVIDIA_DRIVER_CAPABILITIES=compute,utility

View File

@@ -26,7 +26,7 @@ services:
image: hotwa/deepspeed:test image: hotwa/deepspeed:test
shm_size: '32gb' shm_size: '32gb'
ports: ports:
- 3227:22 - 3227:2222
environment: environment:
- NVIDIA_VISIBLE_DEVICES=all - NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility - NVIDIA_DRIVER_CAPABILITIES=compute,utility