This is a base image, not like a image from dockerfile.

 

There are couple ways to do this,

 

1. ISO

 # mount -o loop ubuntu-14.04-server-amd64.iso /media/cdrom

 # tar -C /media/cdrom -c . | docker import - guol/ubuntu14

 

2. Debian and Ubuntu,  debootstrap way.

 

1. Install debootstrap.

2. Creat a chroot image folder.

3. Import this chroot folder into docker.

 

=====

# sudo zypper in debootstrap

 # sudo debootstrap --arch amd64 sid /sid-chroot http://deb.debian.org/debian/

# sudo tar -C sid -c . | sudo docker import - sid

# sudo docker run -ti sid /bin/bash

 

3. fdebootstrap 

To be continued

 

4. wiki for SUSE

# sudo zypper in kiwi kiwi-doc

# mkdir suse && cd suse

# sudo cp -r /usr/share/doc/packages/kiwi/examples/suse-13.1/ .

# edit config.xml file 

# mkdir image/

# sudo kiwi -p suse-13.1/suse-docker-container \ --root image/

# sudo kiwi --create image --type docker -d image-result

# sudo docker import - myimage < image-result/image.tar.xz