Skip to content

5. More Commands

Spencer Kotowick edited this page Jan 13, 2017 · 1 revision

Remove containers related to the application:

$ rake docker:clean                     

Attach to the rails console:

$ rake docker:console[project]          

Where 'project' is the postfix of your container name. You most like will not have to change this.


Attach to the container (entry point: /bin/bash)

$ rake docker:attach[project]           

Where 'project' is the postfix of your container name. You most like will not have to change this.


Execute a command on the container

$ rake docker:exec[project, command]

Where 'project' is the postfix of your container name. You most like will not have to change this.

Where 'command' is the command you want to run on the container. Change this to a proper command.


Clone this wiki locally