From f5db05da354deef3ff7f4f03485a4dad5c0081ca Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Mon, 29 Apr 2024 20:23:06 -0400 Subject: [PATCH] updated docker docks --- docs/hero_mdbook_docker.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/hero_mdbook_docker.md b/docs/hero_mdbook_docker.md index 01bed07..99f7853 100644 --- a/docs/hero_mdbook_docker.md +++ b/docs/hero_mdbook_docker.md @@ -27,13 +27,13 @@ Note that you will need to adjust the local path of the git repo and the docker - On a terminal window, start Hero docker ``` - sudo docker run --name herodocker -v /local/machine/path/to/git/repo:/docker/path/to/git/repo/ ghcr.io/scottyeager/hero:latest + sudo docker run --name herodocker -d -v /local/machine/path/to/git/repo:/docker/path/to/git/repo/ ghcr.io/scottyeager/hero:latest ``` - In our case, the docker path to the repo is the following ``` /root/code/git.ourworld.tf/tfgrid/info_tfgrid/ ``` -- Open a new terminal window and enter the following. We will be working on this window now. +- Execute the Hero docker container ``` sudo docker exec -it herodocker bash ``` @@ -66,11 +66,10 @@ Note that you will need to adjust the local path of the git repo and the docker ``` http://172.17.0.2:3000/ ``` -- To stop the container, exit the current window and run the following: +- To stop the container, exit the Docker container with `exit` and run the following: ``` sudo docker stop herodocker ``` - - The first terminal window that was running **docker run** should now have exited Docker. - To start Hero after having stopped the container, run the following: ``` sudo docker start herodocker