-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
I fail in step 10 Run the following command to start your application. #22054
Comments
Thanks for sharing the issue. Unfortunately, this looks like it may be a system-specific configuration issue. You can try running a simple container that bind mounts that file in order to see if it fails. That'll run a alpine container, bind mount your password.txt file inside it, and then print out the password contained inside. If you want to do a workaround and troubleshoot later, you can avoid using secrets.
For the above example, you can learn about the environment variables used at https://hub.docker.com/_/postgres and in the |
Thank for replying to me, I have no idea what happened, but today I'm tried remove postgresql image and re-pull it. After that, I ran docker cmd again, and it work for me without change anything in the compose file. |
Is this a docs issue?
Type of issue
I can't find what I'm looking for
Description
My Docker File
ARG NODE_VERSION=22.13.1 FROM node:${NODE_VERSION}-alpine ENV NODE_ENV production WORKDIR /usr/src/app RUN --mount=type=bind,source=package.json,target=package.json \ --mount=type=bind,source=package-lock.json,target=package-lock.json \ --mount=type=cache,target=/root/.npm \ npm ci --omit=dev USER node EXPOSE 3000 CMD node src/index.js
My Compose File
My Project Struct
When I run command
docker compose up --build
I get error as the below, I felt something wrong when docker try to mount or read something from db directory but how to fix it?Location
https://docs.docker.com/guides/nodejs/develop/
Suggestion
No response
The text was updated successfully, but these errors were encountered: