Skip to content

Instantly share code, notes, and snippets.

@mfojtik
Created April 25, 2014 15:34
Show Gist options
  • Save mfojtik/11293743 to your computer and use it in GitHub Desktop.
Save mfojtik/11293743 to your computer and use it in GitHub Desktop.
build image from container
~/code/rh/docker-image-examples/centos-ruby → docker run -v /var/run:/var/run mfojtik/centos-ruby:extended /bin/sti build git://github.com/mfojtik/sinatra-app-example mfojtik/centos-ruby:extended my-app --debug
2014/04/25 15:33:52 Using docker socket: unix:///var/run/docker.sock
2014/04/25 15:33:52 Clean build will be performed
2014/04/25 15:33:52 Performing source build from git://github.com/mfojtik/sinatra-app-example
2014/04/25 15:33:52 Fetching git://github.com/mfojtik/sinatra-app-example to directory /tmp/sti307542252/src
2014/04/25 15:33:52 Creating container using config: {Hostname: Domainname: User:root Memory:0 MemorySwap:0 CpuShares:0 AttachStdin:false AttachStdout:false AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[/usr/bin/prepare] Dns:[] Image:mfojtik/centos-ruby:extended Volumes:map[/tmp/src:{}] VolumesFrom: WorkingDir: Entrypoint:[] NetworkDisabled:false}
2014/04/25 15:33:53 Starting container with config: {Binds:[/tmp/sti307542252/src:/tmp/src] ContainerIDFile: LxcConf:[] Privileged:false PortBindings:map[] Links:[] PublishAllPorts:false}
Building your Ruby application
cp: cannot stat `/tmp/src/*': No such file or directory
An error occured: Running /usr/bin/prepare in base image failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment