Docker

Docker

v19.03.12 — 2019.09.24

docker -> make environment as an image (server, redis, database, etc.) -> image host on docker hub

docker build

Try Ruby 3.0.0-preview1

$ docker run -it -v $(pwd):/app -w /app rubylang/ruby:3.0.0-preview1-bionic bash
Unable to find image 'rubylang/ruby:3.0.0-preview1-bionic' locally
3.0.0-preview1-bionic: Pulling from rubylang/ruby
f08d8e2a3ba1: Pull complete
3baa9cb2483b: Pull complete
94e5ff4c0b15: Pull complete
1860925334f9: Pull complete
434ea235d88d: Pull complete
f570e67a5e0c: Pull complete
ae0609335980: Pull complete
8d17f446c58f: Pull complete
14b29e11e63e: Pull complete
8bc4734d3ba1: Pull complete
Digest: sha256:04a9656eb5a0ffb41017de92a78963286819a984e39d842e67387bf1a417dd17
Status: Downloaded newer image for rubylang/ruby:3.0.0-preview1-bionic
root@8aba56178b02:/app# irb
irb(main):001:0> RUBY_VERSION
=> "3.0.0"