One technique that I use is to use an expect script and perform an
apc logout followed by an
apc login to refresh my token. Then all APC commands from that point won't get prompted. Just be sure to handle your passwords securely.
Also don't forget
--batch after any APC command that has interactive prompts afterwards (which is almost all of them).
Finally, if you're going to set up a complex environment (maybe multiple Docker jobs + services + virtual network, etc.), consider making use of the multi-resource manifest (MRM) feature in Apcera. I rarely deploy jobs without one. It's just a nice way to be declarative without having to pass a ton of options with the APC create command. You can learn more here: http://docs.apcera.com/jobs/multi-resource-manifests/
Hope this helps...