-
Notifications
You must be signed in to change notification settings - Fork 228
Is there a way to run the OCI image entrypoint/cmd/app automatically? #874
Comments
Hi, thanks for trying ignite. |
If you add a systemd unit file to the proper directory within the Docker container, it will start your service on boot. If you're running you're own app, you will write your unit file yourself. |
The. What’s the point in supporting docker if you cannot run their commands? |
this. |
It just doesn’t make sense to have to run the container “anonymously” and then execute the command externally. |
Why not add this as an option to a VM's configuration file?
Is there a technical reason for that? Isn't it easily possible to read the exec-commands out of the OCI and run them? Is it more like a design decision (out of scope)? If so, I'd be interested in the reasoning. It does seem like a pretty big hurdle for first time/casual users.
This is a good hint, however it's something no standard container image does (since they work with those commands). Considering the tight integration with container images (I don't currently see an way to easily build on top, supplying something like a Dockerfile or file system overlay, e.g. to add said systemd unit), isn't good compatibility with them a goal of this project? |
This issue has been blocking us for a while. We've not been able to run ssh on a a docker image using a custom base image (which was created by exporting a VM image). Adding it in RUN does not work as it just starts ssh in the intermediate container, and CMD/Entrypoint are not supported by ignite. Open to hearing any ideas or workarounds to support something like this. |
I may be missing something, but the farthest I managed to get was having the VM boot properly, and then need to do
ignite exec $COMMAND
or SSH to it to run my application.the command I use:
ignite run my-image:latest --ssh --size 5GB --runtime docker --ports 8888:8888 --network-plugin docker-bridge
I am using the latest ignite-ubuntu image, which I added stuff to obviously.
The text was updated successfully, but these errors were encountered: