Launching the Docker Container, Displaying in the Browser

Asked 1 years ago, Updated 1 years ago, 42 views

Current state

Below, while watching YouTube videos, we are building an environment for rails using docker.However, the container does not show up.
docker container run-p8000:8000 --name webrick sample/webrick:latest cannot be opened)
しかし However, as far as docker ps-a shows, it seems to be standing up

Create and run the app around 01:07:00

Docker Super Introductory Course Merged | Full Course from scratch (YouTube)

running environment:
M1 Mac Iterms
homebrew
docker git
Each VScode installed
dockerhub logged in

What do you want to do

I want my browser to display http://localhost:8000 and proceed the same way as the YouTube teaching materials.

Actual Error Message

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: enable to start container process: exec: "."—executable file not found in $PATH:unknown.

Reference image

Enter a description of the image here

What you've already tried

I searched the error message and found that there are several solutions, but each approach is different, so I decided that it would be bad to mess with it.

docker

2022-09-30 17:36

1 Answers

Invalid command.There is an extra . at the end.

What I want to do is

 docker container run-p8000:8000 --name webrick sample/webrick:latest

However, what is actually running is

 docker container run-p8000:8000 --name webrick sample/webrick:latest.

That's it.

Therefore, . is about to exec, leading to the error message enable to start container process: exec: ".": executable file not found in $PATH.


2022-09-30 17:36

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.