Skip to content

Commit 8ce625e

Browse files
author
Parinda Darden
committed
Add docker glossary
1 parent 9b53d44 commit 8ce625e

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**docker-compose run web <<commands>>** runs commands in web service container.
2+
**docker-compose run web bin/rails c** runs rails console in web service container.
3+
**docker-compose run web bash** runs bash to interact with the directory inside
4+
the web service container.
5+
**docker-compose build** build image when `Dockerfile` changes or when you want to update or add gems.
6+
**docker-compose up** starts up containers.
7+
**docker-compose up -d** starts up containers **in the background**.
8+
**docker-compose down** stops containers.
9+
**docker-compose ps** lists container processes, container name, container id.
10+
**docker attach <<contianer_name>>** attaches to the named container to interact
11+
with `binding.pry`. `Control + p`, `Control + q`, detach from container.

sites/en/intro-to-rails/glossary.step

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ span "Have a look at the "
44
a 'general Glossary', href: '#general-glossary'
55
span ", the "
66
a 'Command Line Glossary', href: '#command-line-glossary'
7-
span ", and the "
7+
span ", the "
88
a 'Ruby and Rails Glossary', href: '#ruby-and-rails-glossary'
9+
span ", and the "
10+
a 'Docker Glossary', href: '#docker-glossary'
911
span "."
1012

1113
a name: 'general-glossary'
@@ -22,3 +24,8 @@ a name: 'ruby-and-rails-glossary'
2224
situation "Ruby and Rails Glossary" do
2325
insert '../installfest/ruby-and-rails-glossary'
2426
end
27+
28+
a name: 'docker-glossary'
29+
situation "Docker Glossary" do
30+
insert 'docker-glossary'
31+
end

0 commit comments

Comments
 (0)