March-9th-2021, 07:57 AM
Hello, Armin.
I use hilschernetpi/netpi-netx-programming-examples:latest image and want to add my application to container startup.
At the image settings, I see, that entry point is: /usr/sbin/sshd -D.
When I add the container, I have to specify an entry point, "/etc/init.d/entrypoint.sh" (for example). But in your image there is no /etc/init.d/entrypoint.sh. The container is not able to start, if I point to non-existing file.
I solve the problem in the next way:
1. Create container from your image with default entry point
2. Create /etc/init.d/entrypoint.sh
3. Create image from that container
4. Create container from new image and entry point = /etc/init.d/entrypoint.sh
That works, but I think this is not the best solution.
Can you suggest a shorter way?
Thank you,
Walter.
I use hilschernetpi/netpi-netx-programming-examples:latest image and want to add my application to container startup.
At the image settings, I see, that entry point is: /usr/sbin/sshd -D.
When I add the container, I have to specify an entry point, "/etc/init.d/entrypoint.sh" (for example). But in your image there is no /etc/init.d/entrypoint.sh. The container is not able to start, if I point to non-existing file.
I solve the problem in the next way:
1. Create container from your image with default entry point
2. Create /etc/init.d/entrypoint.sh
3. Create image from that container
4. Create container from new image and entry point = /etc/init.d/entrypoint.sh
That works, but I think this is not the best solution.
Can you suggest a shorter way?
Thank you,
Walter.