This is a verified interview question from Squarepoint. Candidates reporting seeing this problem in recent Online Assessments (OAs) and onsite rounds. Mastering "Docker: Port Binding" covers key patterns like Other.
"NOTE : Same for all IITS ### Problem The task is to complete a file stub `/home/ubuntu/826087-docker-port-binding/script.sh` with one or more steps that do the following: * Runs a new Docker container "my-container" from the "nginx" image (latest tag) in interactive mode, without pseudo-TTY allocation. * Binds port "80" of "my-container" container to port "8000" on localhost. ### Note * The completed solution will be evaluated in a new, clean environment. Be sure everything is in the "/home/ubuntu/826087-docker-port-binding" folder. * All the tasks should be done within a simple "sudo solve" execution invoked from the question directory. * Docker is already installed. * You have sudo access. ### Grading * The execution result of "wget -qO- http://localhost:8000/" shows a valid nginx "Welcome Page". Interface: "
Join thousands of developers practicing for Squarepoint.