Hi @tanktusSui, Fly.io doesn’t use Docker to run customer code; your apps run in VMs (“Fly Machines”). If you say more about what you needed the --ipc="host" option for, someone here may have a suggestion as to how to accomplish the desired effect using Machines.
Hey I was taking a look at this then realized why they use --ipc host.
It appears the nginx and agent are sharing memory so the agent is aware of the interactions happening in nginx. The Linux install docs make that a bit clearer, but it’s also why it’s not obvious how the two containers are aware of each other in the Docker docs - other than the ipc=host arg.
Unfortunately running this in the exact style they describe using two containers isn’t possible because fly machines don’t share memory.
One option you could explore is a bit of hybrid, perhaps.
You might be able to use the linux instructions to write a dockerfile that boots both the agent and nginx on one machine.
I’m suspecting this is because of the docker entrypoint isnt specified in my sh file?
#!/usr/bin/expect -f
# Expect the prompt and send "ignore"
spawn sh -c "./open-appsec-install --auto --token 12345bc"
# Set a timeout for the prompt
set timeout 60
# Expect and handle the prompt at any time during execution
expect {
-re "Add your email to receive important security updates and so you can approach us with technical questions.*" {
send "IGNORE\r"
}
timeout {
send_error "Timed out waiting for the prompt\n"
exit 1
}
}
# Continue handling any further prompts that may appear
expect {
-re "Add your email to receive important security updates and so you can approach us with technical questions.*" {
send "ignore\r"
exp_continue
}
eof {
# Command has finished executing
}
timeout {
send_error "Timed out waiting for the prompt\n"
exit 1
}
}
If I do exec sh -c “/docker-entrypoint.sh start” at the end of the sh file… it says it can’t find it.
# Sleep for a short duration to prevent excessive CPU usage
after 1000
# Enter an infinite loop to keep the script running
while {1} {
# Sleep for a short duration to prevent excessive CPU usage
after 1000
}
at the end of the file and this appears to work, my app is running, but I’m no longer seeing any logs as its just sleeping here.