Skip to content

Instantly share code, notes, and snippets.

@smallyunet
Last active June 29, 2021 01:41
Show Gist options
  • Save smallyunet/4a1e0a0ba61a7a8c5e941744be1a7a51 to your computer and use it in GitHub Desktop.
Save smallyunet/4a1e0a0ba61a7a8c5e941744be1a7a51 to your computer and use it in GitHub Desktop.
docker-shortcut
@smallyunet
Copy link
Author

smallyunet commented May 24, 2021

SSH

General SSH

docker run \
--name s1 \
-dit \
-p 0.0.0.0:23999:22 \
-p 0.0.0.0:25000-25099:25000-25099 \
--privileged \
smallyu/centos-sshd \
/usr/sbin/init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment