← azuredeploy

README add

41f99539c7c386831069d214de56a1f1e42577e2 · ovidiucs · Mar 6, 2024 00:15

+5 −2 · 1 file changed

  • codefiles/src/README.md +5 −2
diff --git a/codefiles/src/README.md b/codefiles/src/README.md
index 4764594..3dcfe40 100644
--- a/codefiles/src/README.md
+++ b/codefiles/src/README.md
@@ -1,10 +1,13 @@
-docker run -d --hostname primary_image primary_image:latest
+docker network create my_netwwork
 
 docker build -f Dockerfile.primary -t primary_image .
 
+docker run -d --name primary_container --network my_network --hostname primary_image primary_image:latest
+
 docker build -f Dockerfile.secondary -t secondary_image .
 
-docker run -d --hostname secondary_image secondary_image:latest
+docker run -d --name secondary_container --network my_network --hostname secondary_image secondary_image:latest
+
 
 Not sure if docker compose would work here or not as we need to specify the order 
 in which these images would run. For instance primary would run first but can also be run second to test if connection to first image is