Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsContainerRunning ¶
IsContainerRunning checks if there is a container with status "up" for the specified project.
func NetworkCreate ¶
func NetworkCreate(name string, opts *types.NetworkCreate) (string, error)
NetworkCreate sends a request to the local docker daemon to create the ipam network specified with name with the provided ipam options.
Returns the network id of the created network or an error.
func NetworkIDFromName ¶
NetworkIDFromName checks for the existence of the supplied network name and returns its id if it exists. If it does not exist an empty string is returned.
func RemoveContainerIfRequired ¶
RemoveContainerIfRequired checks each exited container in the container name list and removes any of those containers if it is attached to the network name provided but with a different network ID.
Types ¶
This section is empty.