Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check Docker Architecture to Avoid Manifest Errors #4

Open
AgentBurgundy opened this issue Dec 3, 2018 · 1 comment
Open

Check Docker Architecture to Avoid Manifest Errors #4

AgentBurgundy opened this issue Dec 3, 2018 · 1 comment
Labels
bug Something isn't working Hacktoberfest windows Windows related problems

Comments

@AgentBurgundy
Copy link

Currently, if someone is using Docker for Windows and is currently setup using Windows containers, they will receive this error.

(node:6320) UnhandledPromiseRejectionWarning: Error: (HTTP code 404) no such container - No such image: node:latest
    at D:\Git\try\node_modules\docker-modem\lib\modem.js:254:17
    at getCause (D:\Git\try\node_modules\docker-modem\lib\modem.js:284:7)
    at Modem.buildPayload (D:\Git\try\node_modules\docker-modem\lib\modem.js:253:5)
    at IncomingMessage.<anonymous> (D:\Git\try\node_modules\docker-modem\lib\modem.js:229:14)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1098:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
(node:6320) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6320) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

We could probably make this easier to the end user by checking the current architecture using the command docker info -f '{{.OSType}}/{{.Architecture}}' as defined in this article and either throwing an error or even attempting to switch over the architecture auto-magically.

@BrunnerLivio
Copy link
Owner

Sounds great! Though I am in holidays for the next two weeks, so won’t be able to look further into anytime soon. But I think we should try to switch to the needed architecture automagically!

@BrunnerLivio BrunnerLivio added bug Something isn't working windows Windows related problems labels Dec 3, 2018
@BrunnerLivio BrunnerLivio reopened this Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Hacktoberfest windows Windows related problems
Projects
None yet
Development

No branches or pull requests

2 participants