DEV Community

n350071🇯🇵
n350071🇯🇵

Posted on

2 2

rails credentials -e in Docker

🤔 Situation

I met an error when I tried to edit the credentials file.

$ rails credentials -e

error message

(Sorry, I've forgotten to note the error message. if you had one, it's great help for me that you'd paste it at the comment 🦄)

👍 How did I resolve?

Add this line on your Dockerfile.

## install vim
RUN apt-get update && apt-get install apt-file -y && apt-file update && apt-get install vim -y

🔗 Parent Note

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay