diff --git a/libnetwork/bitseq/sequence.go b/libnetwork/bitseq/sequence.go index 9c815e5e3c..a67999313c 100644 --- a/libnetwork/bitseq/sequence.go +++ b/libnetwork/bitseq/sequence.go @@ -1,5 +1,5 @@ // Package bitseq provides a structure and utilities for representing long bitmask -// as sequence of run-lenght encoded blocks. It operates direclty on the encoded +// as sequence of run-length encoded blocks. It operates directly on the encoded // representation, it does not decode/encode. package bitseq diff --git a/libnetwork/controller.go b/libnetwork/controller.go index 6eaa1c6638..2e620a4e1b 100644 --- a/libnetwork/controller.go +++ b/libnetwork/controller.go @@ -305,7 +305,7 @@ func (c *controller) clusterAgentInit() { c.clusterConfigAvailable = true keys := c.keys c.Unlock() - // agent initialization needs encyrption keys and bind/remote IP which + // agent initialization needs encryption keys and bind/remote IP which // comes from the daemon cluster events if len(keys) > 0 { c.agentSetup() @@ -779,7 +779,7 @@ func (c *controller) reservePools() { } for _, ep := range epl { if err := ep.assignAddress(ipam, true, ep.Iface().AddressIPv6() != nil); err != nil { - logrus.Warnf("Failed to reserve current adress for endpoint %q (%s) on network %q (%s)", + logrus.Warnf("Failed to reserve current address for endpoint %q (%s) on network %q (%s)", ep.Name(), ep.ID(), n.Name(), n.ID()) } } diff --git a/libnetwork/drivers/bridge/setup_ip_tables.go b/libnetwork/drivers/bridge/setup_ip_tables.go index 862d9e4491..9df4cdc6c6 100644 --- a/libnetwork/drivers/bridge/setup_ip_tables.go +++ b/libnetwork/drivers/bridge/setup_ip_tables.go @@ -71,7 +71,7 @@ func (n *bridgeNetwork) setupIPTables(config *networkConfiguration, i *bridgeInt return fmt.Errorf("Cannot program chains, EnableIPTable is disabled") } - // Pickup this configuraton option from driver + // Pickup this configuration option from driver hairpinMode := !driverConfig.EnableUserlandProxy maskedAddrv4 := &net.IPNet{ diff --git a/libnetwork/drivers/overlay/overlay.go b/libnetwork/drivers/overlay/overlay.go index c1c87461a7..e3c1f7b899 100644 --- a/libnetwork/drivers/overlay/overlay.go +++ b/libnetwork/drivers/overlay/overlay.go @@ -99,7 +99,7 @@ func Init(dc driverapi.DriverCallback, config map[string]interface{}) error { // outside of the restore path can potentially fix the network join and succeed. for nid, n := range d.networks { if n.initErr != nil { - logrus.Infof("resetting init error and once variable for network %s after unsuccesful endpoint restore: %v", nid, n.initErr) + logrus.Infof("resetting init error and once variable for network %s after unsuccessful endpoint restore: %v", nid, n.initErr) n.initErr = nil n.once = &sync.Once{} } diff --git a/libnetwork/drivers/solaris/bridge/bridge.go b/libnetwork/drivers/solaris/bridge/bridge.go index 82d0e8c44c..97180fbbd3 100644 --- a/libnetwork/drivers/solaris/bridge/bridge.go +++ b/libnetwork/drivers/solaris/bridge/bridge.go @@ -993,7 +993,7 @@ func (c *networkConfiguration) Conflicts(o *networkConfiguration) error { return fmt.Errorf("same configuration") } - // Also empty, becasue only one network with empty name is allowed + // Also empty, because only one network with empty name is allowed if c.BridgeName == o.BridgeName { return fmt.Errorf("networks have same bridge name") } diff --git a/libnetwork/ipvs/ipvs.go b/libnetwork/ipvs/ipvs.go index d98acd4055..9b44159d5d 100644 --- a/libnetwork/ipvs/ipvs.go +++ b/libnetwork/ipvs/ipvs.go @@ -47,7 +47,7 @@ type Handle struct { // New provides a new ipvs handle in the namespace pointed to by the // passed path. It will return a valid handle or an error in case an -// error occured while creating the handle. +// error occurred while creating the handle. func New(path string) (*Handle, error) { setup() diff --git a/libnetwork/network_windows.go b/libnetwork/network_windows.go index 7ae7a68798..07a1c1d424 100644 --- a/libnetwork/network_windows.go +++ b/libnetwork/network_windows.go @@ -54,7 +54,7 @@ func (n *network) startResolver() { logrus.Errorf("Resolver Setup/Start failed for container %s, %q", n.Name(), err) time.Sleep(1 * time.Second) } else { - logrus.Debugf("Resolver bound successfuly for network %s", n.Name()) + logrus.Debugf("Resolver bound successfully for network %s", n.Name()) n.resolver = append(n.resolver, resolver) break } diff --git a/libnetwork/networkdb/networkdb.go b/libnetwork/networkdb/networkdb.go index 71a4e2b9ee..8ff8afad66 100644 --- a/libnetwork/networkdb/networkdb.go +++ b/libnetwork/networkdb/networkdb.go @@ -244,7 +244,7 @@ func (nDB *NetworkDB) getEntry(tname, nid, key string) (*entry, error) { // CreateEntry creates a table entry in NetworkDB for given (network, // table, key) tuple and if the NetworkDB is part of the cluster -// propogates this event to the cluster. It is an error to create an +// propagates this event to the cluster. It is an error to create an // entry for the same tuple for which there is already an existing // entry unless the current entry is deleting state. func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error { @@ -279,7 +279,7 @@ func (nDB *NetworkDB) CreateEntry(tname, nid, key string, value []byte) error { // UpdateEntry updates a table entry in NetworkDB for given (network, // table, key) tuple and if the NetworkDB is part of the cluster -// propogates this event to the cluster. It is an error to update a +// propagates this event to the cluster. It is an error to update a // non-existent entry. func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error { if _, err := nDB.GetEntry(tname, nid, key); err != nil { @@ -307,7 +307,7 @@ func (nDB *NetworkDB) UpdateEntry(tname, nid, key string, value []byte) error { // DeleteEntry deletes a table entry in NetworkDB for given (network, // table, key) tuple and if the NetworkDB is part of the cluster -// propogates this event to the cluster. +// propagates this event to the cluster. func (nDB *NetworkDB) DeleteEntry(tname, nid, key string) error { value, err := nDB.GetEntry(tname, nid, key) if err != nil { @@ -408,7 +408,7 @@ func (nDB *NetworkDB) WalkTable(tname string, fn func(string, string, []byte) bo return nil } -// JoinNetwork joins this node to a given network and propogates this +// JoinNetwork joins this node to a given network and propagates this // event across the cluster. This triggers this node joining the // sub-cluster of this network and participates in the network-scoped // gossip and bulk sync for this network. @@ -447,7 +447,7 @@ func (nDB *NetworkDB) JoinNetwork(nid string) error { return nil } -// LeaveNetwork leaves this node from a given network and propogates +// LeaveNetwork leaves this node from a given network and propagates // this event across the cluster. This triggers this node leaving the // sub-cluster of this network and as a result will no longer // participate in the network-scoped gossip and bulk sync for this