I have the same problem.
@codinghorror Here are the steps to reproduce and a lead to fix this regression
Step to reproduct:
- Set in containers config (app):
docker_args: "--network reverse-proxy" - rebuild
./launcher rebuild app - see error
/usr/bin/docker: --network is not a valid mac address
It’s a bug introduced by commit bfc79e7 (GitHub - discourse/discourse_docker: A Docker image for Discourse · GitHub)
merge_user_args is called by set_template_info, but set_template_info is called twice when rebuild (run_run and run_bootstrap)
So instead of user_args equals $user_args $docker_args, we have $user_args $docker_args $docker_args
Docker doesn’t allow to configure the same network mutiple times
docker: network "reverse-proxy" is specified multiple times
Thank you to roolback this commit or make idempotent merge_user_args