Skip to content

Instantly share code, notes, and snippets.

@likejazz
Created January 6, 2023 05:58
Show Gist options
  • Save likejazz/b9e3eadb39e941ddda77f11a3bc8fb6c to your computer and use it in GitHub Desktop.
Save likejazz/b9e3eadb39e941ddda77f11a3bc8fb6c to your computer and use it in GitHub Desktop.
CONTAINER_ID=$(docker ps --format '{{.Names}}')
docker exec $CONTAINER_ID /usr/sbin/service ssh start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment