I have an executable cross-compiled for FreeBSD in a docker container.
What is the simplest way of running it?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
Most modern FreeBSD installation ISOs do indeed permit live use of FreeBSD's CLI. Copying the executable into a custom-burned ISO may not be the easiest route, though. Slightly easier, assuming you have both a burned ISO and a spare thumb drive, is to put the executable on the thumb drive, boot the ISO, mount the thumbdrive, and run the executable from the thumbdrive.
Actually, if you have a spare thumbdrive, then it's probably just as easy and somewhat faster to skip the optical media. Download a "memstick" installation image and
dd the image to the thumbdrive as directed in section 220.127.116.11 of the handbook:
After you've dd'ed the image onto the thumbdrive, mount the thumbdrive and copy your executable into
/mnt/root or someplace of your own choosing. Now boot the thumbdrive, and you can run your executable from the directory you placed it into.