some applications pre installed like docker, postgres etc.
The challenge I am facing is there are some docker images for .tar that I wanna load but I can't do that since docker isn't running on the chroot environment.
I was researching and I came across something called preseed script where I can apparently customize the installer and set default values
My doubt is for the docker images to load I need to have the docker daemon running, would making changes to the preseed actually work? I don't think the docker daemon would be running when the preseed script would run
the Preseed sets values that would be asked in the setup. The livesystem is unaffected.
How would I go about loading the docker images in boot? I could create a service but then it would run on boot every time.
Services can be disabled.
The livesystem is usually a tmpfs with the content of the squashfs/erofs. You also could install docker in the lifesystem.
I installed the docker in the live system while in the chroot environment. I am facing the issue that I can't load the docker images from the tar file, since docker daemon could not run in the chroot
Can't you start the docker daemon within the chroot and then import images? I already did something like this iirc
I can't start the docker daemon within the chroot env Something related to NAT error permission. Will post the exact error next time when I boot
In the meantime I found the script I used, I started the docker daemon with dockerd --iptables=false & maybe because of the same NAT thing, I don't remember
What you might actually want is a configuration management tool like Ansible that will set up an existing base install for you
It is a little bit off the topic but do you have any recommendations how to speed up the install process using ansible? I manage over 100 computers and when doing fresh installs (ubuntu cloud-init) with ansible it takes ton of time to download all the packages, install them etc.
Faster internet helps with download, faster IO with install times
Also you can use mitogen to speed it up a bit
Thanks will try this.
The thing is i can't pull more than 3 gigs because the router will be overloaded... but i think this is the main problem, the installing packages, next steps are quick
Replace router xD
that's on the agenda for many years now... yeah...
I had no idea, will look into this, thanks. The thing is I need to load some custom docker container which runs the backend of an application that is installed in the image so was going for this route
Why don't you put the front end in docker too?
I can do that but either way I need to load docker container either after Ubuntu is installed and loaded or pre load the docker conatiners while creating the ISO. Can't decide which one would be better
The former, Ansible has a Docker module.
this looks very interesting for our routine runs, thanks!
Iirc it usually doesn't support latest versions and has some other tradeoff
Start downloading 3 gigs often :)
well they limit my rooms to 500mbits when i am reinstalling :/
Thanks Would you provide some insights or resources as to why you prefer the former to later?
Your setup will be out of date the moment you create it, you won't know how you created it (unless you do an automated setup with autorefesh)
Обсуждают сегодня