Skip to content

Commit 86e1b2d

Browse files
committed
rename docker-compose-attach
1 parent 9cbdf67 commit 86e1b2d

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ $ docker-compose exec web rake db:create
1313

1414
You can see Rails top page on http://localhost:3000/.
1515

16+
17+
## pry
18+
19+
If you want to attach a docker process after you stop at a break point with pry, use the following command.
20+
21+
```
22+
$ ./bin/docker-compose-attach web
23+
```
24+
1625
## Build and push an image to Docker Hub
1726

1827
This is just a note for admin (Ham) to push a docker image on https://hub.docker.com/.

bin/docker-compose-attach

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env bash
2+
3+
docker-compose up -d && docker attach $(docker-compose ps -q $1)

bin/docker-compose-up-attach-web

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)