Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
| ... | ... |
@@ -31,12 +31,12 @@ func (daemon *Daemon) LogContainerEventWithAttributes(container *container.Conta |
| 31 | 31 |
daemon.EventsService.Log(action, events.ContainerEventType, actor) |
| 32 | 32 |
} |
| 33 | 33 |
|
| 34 |
-// LogImageEvent generates an event related to a container with only the default attributes. |
|
| 34 |
+// LogImageEvent generates an event related to an image with only the default attributes. |
|
| 35 | 35 |
func (daemon *Daemon) LogImageEvent(imageID, refName, action string) {
|
| 36 | 36 |
daemon.LogImageEventWithAttributes(imageID, refName, action, map[string]string{})
|
| 37 | 37 |
} |
| 38 | 38 |
|
| 39 |
-// LogImageEventWithAttributes generates an event related to a container with specific given attributes. |
|
| 39 |
+// LogImageEventWithAttributes generates an event related to an image with specific given attributes. |
|
| 40 | 40 |
func (daemon *Daemon) LogImageEventWithAttributes(imageID, refName, action string, attributes map[string]string) {
|
| 41 | 41 |
img, err := daemon.GetImage(imageID) |
| 42 | 42 |
if err == nil && img.Config != nil {
|