fduran / sadservers

SadServers: Linux & DevOps Troubleshooting Scenarios SaaS
https://sadservers.com
1.92k stars 55 forks source link

Scenario "Salta": too restrictive solution script #11

Open fduran opened 11 months ago

fduran commented 11 months ago

tTe regex for checking the docker published port can be relaxed, as we don/t really care if the node app is not started on :8888, as long as the port is mapped correctly when executing "docker run".

fduran commented 5 months ago

from @erjan it seems to me there is only 1 way it is solved, to do

sudo docker run -d -p 8880:8888 myapp

and actually myapp should be accepted as name, as long as only 1 container is running, but it seems it only accept the container named 'app'.

but the docker file has CMD['node', 'server.js'] - it still does not run as expected.

the only solution that works is if i run docker run -d app node server.js