Skip to content

Commit 61a4497

Browse files
committed
Update README with some of the latest changes
1 parent 277661b commit 61a4497

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ Docker::Image.build("from base\nrun touch /test")
210210
Docker::Image.build_from_dir('.')
211211
# => Docker::Image { :id => 1266dc19e, :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }
212212

213+
# Create an Image from a file other than Dockerfile.
214+
# docker command for reference: docker build -f Dockerfile.Centos .
215+
Docker::Image.build_from_dir('.', { 'dockerfile' => 'Dockerfile.Centos' })
216+
# => Docker::Image { :id => 1266dc19e, :connection => Docker::Connection { :url => tcp://localhost, :options => {:port=>2375} } }
217+
213218
# Create an Image from a Dockerfile and stream the logs
214219
Docker::Image.build_from_dir('.') do |v|
215220
if (log = JSON.parse(v)) && log.has_key?("stream")
@@ -504,6 +509,10 @@ image 'repo:new_tag' => 'repo:tag' do
504509
end
505510
```
506511

512+
## Known issues
513+
514+
* If the docker daemon is always responding to your requests with a 400 Bad Request when using UNIX sockets, verify you're running Excon version 0.46.0 or greater. [Link](https://github.com/swipely/docker-api/issues/381)
515+
507516
## Not supported (yet)
508517

509518
* Generating a tarball of images and metadata for a repository specified by a name: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.14/#get-a-tarball-containing-all-images-and-tags-in-a-repository

0 commit comments

Comments
 (0)