From 767d60d84629af1deb4ed4c23570f1a46ca2bb99 Mon Sep 17 00:00:00 2001 From: Gregan Date: Sun, 27 Feb 2022 10:36:45 +0000 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 639b140..9261d2e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ You have to go through different levels, using ssh. For each level, you have to find the password for the next level. Each level's user is named level1, level2, level3, etc. -## DEPLOIEMENT +## DEPLOYEMENT - Build the image: ```bash @@ -15,9 +15,18 @@ docker build -t enter-bash:1.0 . - Start the container: ```bash -docker run -d -p 5555:22 enter-bash:1.0 +docker run -d --name enter-bash -p 5555:22 enter-bash:1.0 ``` Note: The port 5555 is the docker's host port mapped to the ssh port of the container (22), you can choose a port to your liking. +## UTILISATION + +- Connect to the game container: +```bash +ssh -p 5555 level1@127.0.0.1 +``` + +- Password: knj-yhn-576 +