Docker Community Forums

Share and learn in the Docker community.

Import qcow2 image to docker hub

(Preetip) #1

I have prebuild ubuntu14.0.4.1 qcow2 image . I followed the following instruction for importing it to docker hub
Used virt-tar-out to convert it tar file
sudo virt-tar-out -a /tmp/ubuntu.qcow2 / - | gzip --best > ubuntu.tar.gz
cat ubuntu.tar.gz | sudo docker import - repo:tag
I get the image id

Now when I try run a conatiner from the image I get following error
Error response from daemon: No command specified

If the give teh command along with docker run command
exec: “/bin/sh”: stat /bin/sh: no such file or directory
Error response from daemon: Cannot start container c2d0ce1a4bfd9f4784edad53b3669e736f1442b2ba208294b00f242d07dc2208: [8] System error: exec: “/bin/sh”: stat /bin/sh: no such file or directory
None of the commands are working.