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
I want my browser to display http://localhost:8000
and proceed the same way as the YouTube teaching materials.
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
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
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
.
© 2024 OneMinuteCode. All rights reserved.