The brief description: https://sheroz.com/pages/blog/ruby-rails-windows-docker.html
> docker-compose build
> docker-compose up -d
> docker-compose exec app bash
$ sudo npm install bower -g
$ sudo mkdir -p $BUNDLE_PATH
$ sudo chown $HOST_USER:$HOST_USER $BUNDLE_PATH
$ chmod 700 $BUNDLE_PATH
$ sudo chmod 777 /opt/app
$ cp -R /opt/src/. /opt/app
$ gem install bundler -v 1.17.0
$ bundle install
$ rake bower:install['--allow-root']
> docker-compose exec app bash
$ rake aws:restore_db
> docker-compose exec app bash
$ rails s -b 0.0.0.0
Open host's browser at http://localhost:3000
> docker-compose exec app bash
$ bundle exec rspec
https://capistranorb.com/documentation/getting-started/authentication-and-authorisation/
> docker-compose exec app bash
$ sudo chown $HOST_USER:$HOST_USER $SSH_PRIVATE_KEY
$ chmod 600 $SSH_PRIVATE_KEY
$ exit
> docker-compose exec app bash
$ cd /opt/src
$ cap staging deploy
$ ssh -vT git@github.com
File type: Any
Scope: Project files
Program: C:\Program Files\Docker\Docker\resources\bin\docker
Arguments: cp
Working directory:
In the General section of your Docker settings, turn on the Expose daemon on tcp://localhost:2375 without TLS option.
https://www.jetbrains.com/help/ruby/settings-docker-tools.html
ERROR: for app Cannot start service app: driver failed programming external connectivity on endpoint (...) Error starting userland proxy: (...)
> docker-compose run --rm app <command>
> docker-compose run --rm app mc
> docker-compose run --rm app irb
> docker-compose run --rm app bundle install
> docker run -it app bash
> docker run -it app mc
> docker run -it app irb
> docker stats
> docker-compose ps
> docker ps -a
> docker-compose ps --services
> docker rm $(docker ps -a -q)
> docker image ls -a
> docker rmi -f $(docker images -q)
> docker-compose up -d
> docker-compose stop
> docker-compose down
> docker-compose down --rmi all -v --remove-orphans
> docker volume ls
> docker volume prune -f
> docker system prune --volumes -af
> docker inspect <container ID>