通过image生成dockerfile(BUG)

执行命令:

docker run --rm -v /run/docker.sock:/run/docker.sock dduvnjak/dockerfile-from-image 

 错误信息:

/usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/unix_socket.rb:14:in `connect_nonblock': No such file or directory - connect(2) for /var/run/docker.sock (Errno::ENOENT) (Excon::Error::Socket)
        from /usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/unix_socket.rb:14:in `connect'
        from /usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/socket.rb:28:in `initialize'
        from /usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/connection.rb:402:in `new'
        from /usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/connection.rb:402:in `socket'
        from /usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/connection.rb:106:in `request_call'
        from /usr/lib/ruby/gems/2.2.0/gems/excon-0.51.0/lib/excon/middlewares/mock.rb:47:in `request_call'

解决:

https://github.com/lukapeschke/dockerfile-from-image

你可能感兴趣的:(通过image生成dockerfile(BUG))