Skip to content

DailyDevelopment

Robert Burrell Donkin edited this page Mar 5, 2018 · 1 revision

Daily Development Workflow

How to get a container ready for development

Prerequisites

Recipe

Locate Container

Use docker ps -a to track down the container name.

tun@argos ~ $ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                     PORTS               NAMES
cab3868a4b1d        b4232995154d        "node"                   2 days ago          Exited (137) 2 days ago                        confident_heyrovsky
394f1f9f1fff        277fe72553f6        "/bin/sh"                6 days ago          Exited (137) 3 days ago                        relaxed_hopper
3c9ef270451d        277fe72553f6        "/bin/sh"                9 days ago          Exited (137) 9 days ago                        wonderful_einstein
c3a22b7ca609        277fe72553f6        "--mount type=bind..."   9 days ago          Created                                        

Restart Container

Use the name to restart the container.

tun@argos ~ $ docker restart relaxed_hopper
relaxed_hopper

Open Terminal in Container

tun@argos ~ $ docker exec -it relaxed_hopper /bin/bash

Done

Ready to use Gatsby In Container

Clone this wiki locally