.. versionadded:: 2015.8.3

    Disconnect container from network

    container
        Container name or ID

    network_id
        Network name or ID

    CLI Examples:

    .. code-block:: bash

        salt myminion docker.disconnect_container_from_network web-1 mynet
        salt myminion docker.disconnect_container_from_network web-1 1f9d2454d0872b68dd9e8744c6e7a4c66b86f10abaccc21e14f7f014f729b2bc

def disconnect_container_from_network(container, network_id):
    '''
    .. versionadded:: 2015.8.3

    Disconnect container from network

    container
        Container name or ID

    network_id
        Network name or ID

    CLI Examples:

    .. code-block:: bash

        salt myminion docker.disconnect_container_from_network web-1 mynet
        salt myminion docker.disconnect_container_from_network web-1 1f9d2454d0872b68dd9e8744c6e7a4c66b86f10abaccc21e14f7f014f729b2bc
    '''
    log.debug(
        'Disconnecting container \'%s\' from network \'%s\'',
        container, network_id
    )
    response = _client_wrapper('disconnect_container_from_network',
                               container,
                               network_id)
    log.debug(
        'Successfully disconnected container \'%s\' from network \'%s\'',
        container, network_id
    )
    _clear_context()
    return True