You can quickly publish all attributes with existing connections to nodes outside the container with the Publish Connections option.
To publish existing input and output connections to a container
Any internal attribute connected to an external node is published to the container.