cd / ; tar -cpzf centos-6-386.tar.gz --exclude=/centos-6-386.tar.gz \ --exclude=/proc --exclude=/tmp --exclude=/mnt --exclude=/dev \ --exclude=/sys / # или cd / ; tar -cpzf ubuntu-12-386.tar.gz --exclude=/ubuntu-12-386.tar.gz --exclude=/proc --exclude=/tmp --exclude=/mnt --exclude=/dev --exclude=/sys --exclude=/usr/local/ispmgr/tmp --exclude=run / scp centos-6-386.tar.gz 91.194.3.121:/root/image
FROM scratch ADD centos-6-386.tar.gz / .... .... CMD ["/bin/bash"]
В docker создаем и заходим:
docker build -t isp4-centos . docker run -it isp4-centos bash