Skip to content

Commit 07e068b

Browse files
committed
Fix example docker run commands in README, to handle the Docker daemon entrypoint
1 parent 0918cab commit 07e068b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,22 @@ The master branch will sometimes have changes that are still in the process of b
88

99
### How to build Docker images
1010

11-
Steps to build Ruby-2.3.1 image
11+
Steps to build Ruby 2.3.1 image
1212

1313
* Run `git clone https://github.com/aws/aws-codebuild-docker-images.git` to download this repository to your local machine
14-
* Run `cd ubuntu/ruby/2.3.1` to change the directory in your local workspace. This is the location of Ruby-2.3.1 Dockerfile with Ubuntu base.
15-
* Run `docker build -t aws/codebuild/ruby-2.3.1 .` to build Docker image locally
16-
* Once succeeded, your can run `docker run -ti aws/codebuild/ruby-2.3.1 bash` to start container running `bash` shell with the ruby-2.3.1 image.
14+
* Run `cd ubuntu/ruby/2.3.1` to change the directory in your local workspace. This is the location of the Ruby 2.3.1 Dockerfile with Ubuntu 14.04 base.
15+
* Run `docker build -t aws/codebuild/ruby:2.3.1 .` to build Docker image locally
1716

17+
To poke around in the image iteractively, build it and run:
18+
`docker run -it --entrypoint sh aws/codebuild/ruby:2.3.1 -c bash`
19+
20+
To let the Docker daemon start up in the container, build it and run:
21+
`docker run -it --privileged aws/codebuild/ruby:2.3.1 bash`
1822

1923
```
2024
$ git clone https://github.com/aws/aws-codebuild-docker-images.git
2125
$ cd aws-codebuild-docker-images
2226
$ cd ubuntu/ruby/2.3.1
23-
$ docker build -t aws/codebuild/ruby-2.3.1 .
27+
$ docker build -t aws/codebuild/ruby:2.3.1 .
28+
$ docker run -it --entrypoint sh aws/codebuild/ruby:2.3.1 -c bash
2429
```

0 commit comments

Comments
 (0)