This looks like a nice Vim image, but I'm not sure why you're using USER dev. It's causing issues when I try to use the container like so:
$ docker run -it --rm --volumes-from wordpress -w /var/www/html haron/vim vim wp-config.php
When I try to save, it gives me an error because the file has been opened in read-only mode due to the fact that it runs as dev and the file is not writable by that user.
I can work around it like so:
$ docker run -it --rm --volumes-from wordpress -w /var/www/html -u root haron/vim vim wp-config.php
This looks like a nice Vim image, but I'm not sure why you're using
USER dev. It's causing issues when I try to use the container like so:When I try to save, it gives me an error because the file has been opened in read-only mode due to the fact that it runs as
devand the file is not writable by that user.I can work around it like so: