Comments (5)
I don't think Error response from daemon
is so bad, but the messages get very messy when the error returned by the daemon has a lot of unnecessary prefixes.
For example, trying to run a binary that doesn't exist:
docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"mozilla\": executable file not found in $PATH".
There are so many :
s in that message, and most of it isn't useful. The source file and line number is the most egregious part - that's absolutely no help to the user and makes it look like something is wrong internally. And we have a quoted string with backslash-escaped characters for no good reason.
I think it should read:
docker: Error response from daemon: executable file "mozilla" not found in $PATH
from cli.
/cc @friism @dnephin @vdemeester
from cli.
I think there is value in understanding where the error is coming from. "from daemon" is probably not the right term, so we should change that part to something more meaningful. "from server", "from api" ?
from cli.
Idk, perhaps we should look at errors individually, but from a UX perspective, there's many examples where it doesn't really matter I guess. Sometimes errors are wrapped three times (error response from daemon: error while doing something: something was not found).
Perhaps logging such errors would be useful, but printing a more user-friendly message.
from cli.
This is an old issue. I will close it as stale.
from cli.
Related Issues (20)
- Proposal: Adding `docker init` Command to Docker CLI HOT 1
- API from container seem can not get response HOT 3
- build: don't hardcode classic builder for windows daemons HOT 1
- [BUG] 26.0.1 does not allow resources.limits.cpu to be a number HOT 5
- Better error message when trying to pull application/vnd.docker.image.rootfs.diff.tar.zstd layer
- UNIQUE SIZE column of docker system df -v should sum to total image occupancy
- Extend `docker container update` to support updating ports HOT 1
- Bug [26.0.1, build d260a54] - Cannot access service HOT 7
- docker network cannot be recreated after removal
- Image for a running container not visible in docker image ls -a
- Docker container keeps increasing memory usage HOT 1
- mapping a container port to multiple host ports doesn't work in host mode
- Is it possible to merge two base images in Docker? HOT 1
- Add `docker create --name= --force` HOT 2
- add "docker tags" command HOT 1
- Error messages are wildly inaccurate when DOCKER_CONFIG is set to a file instead of a directory
- docker push doesn't work for registry with url prefix.
- "docker run" does not allow command arguments containing spaces HOT 1
- docker-cli broken in v26.1.1 with entrypoint is invalid. Keeps hanging forever. HOT 1
- `docker run` throws error if an env var contains whitespace HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.