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 🦄)
Add this line on your
## install vim RUN apt-get update && apt-get install apt-file -y && apt-file update && apt-get install vim -y