I want to create customized ubuntu iso with docker engine installed. I also want to load some docker images in it.
Docker Engine is installed.
I could save docker image using docker save
command. But I couldn't load during installtion.
My sample kickstart file:
%post --nochroot
mkdir /target/usr/share/my-docker-imgs
cp -rf /cdrom/pool/extras/sample.tar /target/usr/share/my-docker-imgs
%end
%post
#server docker status // It shows docker is not running in log file. I also tried to start it hear.
docker load -i /usr/share/my-docker-imgs/sample.tar //Log: Cannot connect to the Docker daemon. Is the docker daemon running on this host?
%end
Also Tried in seed file:
d-i preseed/late_command string in-target docker load -i /usr/share/my-docker-imgs/sample.tar;
It through error code 127 during installation.
I referenced : custom ubuntu iso