"Salta": Docker container won't start.
Scenario: "Salta": Docker container won't start.
Level: Medium
Type: Fix
Tags: docker
Access: Email
Description: There's a "dockerized" Node.js web application in the /home/admin/app directory. Create a Docker container so you get a web app on port :8888 and can curl to it.
Right now curl localhost:8888 does not return the app response — something else may already be answering on that port. For the solution to be valid, there should be only one running Docker container (any image/container name is fine).
NOTE: The base image node:15.7-alpine declared in Dockerfile is present locally (docker images).
NOTE: nginx service is not needed in this server.
Root (sudo) Access: False
Test: curl localhost:8888 returns exactly Hello World! from a single running container that publishes host port 8888.
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 15 minutes.