Can I use mkdir in my docker container?

prsabahrami
TRIAL

a year ago

I want to create a directory with mkdir in my Dockerfile but it is giving error. What should I do? It is giving the below error:
ERROR: process "/bin/sh -c mkdir -p /app/logs" did not complete successfully: exit code 1

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

1 Replies

a year ago

Please provide the actual error messages, that is just the message saying there was an error, it doesn't say what the error is.

Either way, if you are trying to write logs to a file, you won't want to do that on Railway because you'll have no good way to view them, instead, log to stdout / stderr


Can I use mkdir in my docker container? - Railway Help Station