Console logs not appearing and communication with Docker containers fails after building Next.js app as Docker image #72017
Unanswered
trongthienpc
asked this question in
Help
Replies: 2 comments
-
Hey @trongthienpc , To address missing console logs and communication issues between Docker containers after building your Next.js app into a Docker image:
These steps should help diagnose and resolve console logging and Docker container communication issues. Thanks . |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same issue @trongthienpc, how did you fix this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am using Next.js version @rc(>15). When running locally on localhost, console.log works fine on both the server and client. However, after building the application into a Docker image, the console logs no longer appear, neither in the container logs nor in the browser console.
Additionally, this issue occurs when I try to communicate with other Docker containers. When running locally, Next.js can successfully send requests to other Docker containers. But when the app is built into a Docker container, there's no response (neither success nor error).
Any advice on how to resolve these issues?
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions