- clone repository
git clone https://github.com/redrick/ruby_base_image.git
- jump into it
cd ruby_base_image
- run docker build:
docker build -t redrick/ruby_base_image .
You have to build it first :)
- run container
docker run -it -d redrick/ruby_base_image
- check out container ID
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7b8d99fc97d6 redrick/ruby_base_image "bash" 9 hours ago Up 3 minutes happy_dijkstra
- run e.x. bash inside container (using container ID from above)
docker exec -it 7b8d99fc97d6 bash
- run to kill the running container (also using container ID from above)
docker kill 7b8d99fc97d6