Passing docker arguments through firecracker

How do you pass arguments to container images from pulled from docker hub that run on firecracker?

I’d like to essentially replicate the following call:

docker run --name sql \
  -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=«YourStrong!Passw0rd»' \
  -e 'MSSQL_PID=Express' --net=mynet --restart=unless-stopped \
  -d mcr.microsoft.com/mssql/server:2019-latest

Hi @nicpon,

This might be useful for you: Marketplaces — OpenNebula 6.2.0 documentation. Note that if you execute the one_entrypoint.sh as stated in the docs it will be executed everytime the microVM boots, which for some cases might not be the requried behavior.

Can you confirm that this is available with 6.2 only? I don’t see that file deployed in 6.0.X.

Also, how are the EXPOSE docker statements applied to container deployed on firecracker?

Hi @nicpon,

Yes, if you’re using the community edition this was included for OpenNebula 6.2.

how are the EXPOSE docker statements applied to container deployed on firecracker?

Note that when deploying docker images as Firecracker MicroVMs you’re not deploying a container but a (micro)VM. Hence no port needs to be exposed, if any service is started automatically when the microVM is deployed it will be listening there. If need it, you can manage networking access to the microVM using Security Groups.

Thank you.

1 Like