Skip to content

Commit 56062e8

Browse files
authored
Comments (#612)
* fix methods in IContainerOperations with inaccurate remarks * a big more cleanup * show both docker and docker container commands
1 parent 30817b3 commit 56062e8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Docker.DotNet/Endpoints/IContainerOperations.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public interface IContainerOperations
3030
/// <param name="parameters">Specifics of how to perform the operation.</param>
3131
/// <param name="cancellationToken">When triggered, the operation will stop at the next available time, if possible.</param>
3232
/// <returns>A <see cref="Task{TResult}"/> that resolves to a <see cref="CreateContainerResponse"/>, which provides information about the newly-created container.</returns>
33-
/// <remarks>The corresponding command in the Docker CLI is <c>docker container create</c>.</remarks>
33+
/// <remarks>The corresponding command in the Docker CLI are <c>docker create</c> and <c>docker container create</c>.</remarks>
3434
/// <exception cref="DockerContainerNotFoundException">No such container was found.</exception>
3535
/// <exception cref="ArgumentNullException">One or more of the inputs was <see langword="null"/>.</exception>
3636
/// <exception cref="DockerApiException">The input is invalid, there was a conflict with another container, or the daemon experienced an error.</exception>
@@ -73,7 +73,7 @@ public interface IContainerOperations
7373
/// <param name="cancellationToken">When triggered, the operation will stop at the next available time, if possible.</param>
7474
/// <returns>A <see cref="Task{TResult}"/> that resolves to a <see cref="Stream"/>, which provides the log information.</returns>
7575
/// <remarks>This method works only for containers with the <c>json-file</c> or <c>journald</c> logging driver.
76-
/// <br/>The corresponding commands in the Docker CLI are <c>docker logs</c> and <c>docker container logs</c>.</remarks>
76+
/// <br/>The corresponding command in the Docker CLI are </c> <c>docker logs</c> and <c>docker container logs</c>.</remarks>
7777
/// <exception cref="DockerContainerNotFoundException">No such container was found.</exception>
7878
/// <exception cref="ArgumentNullException">One or more of the inputs was <see langword="null"/>.</exception>
7979
/// <exception cref="DockerApiException">The input is invalid or the daemon experienced an error.</exception>
@@ -91,8 +91,7 @@ public interface IContainerOperations
9191
/// <returns>A <see cref="Task"/> that will complete once all log lines have been read, or once the container has exited if Follow is set to <see langword="true"/>.</returns>
9292
/// <remarks>This method is only suited for containers created with a TTY. For containers created without a TTY, use
9393
/// <see cref="GetContainerLogsAsync(string, bool, ContainerLogsParameters, CancellationToken)"/> instead.
94-
/// <br/>
95-
/// The corresponding commands in the Docker CLI are <c>docker inspect</c> and <c>docker container inspect</c>.</remarks>
94+
/// <br/>The corresponding command in the Docker CLI are </c> <c>docker logs</c> and <c>docker container logs</c>.</remarks>
9695
/// <exception cref="DockerContainerNotFoundException">No such container was found.</exception>
9796
/// <exception cref="ArgumentNullException">One or more of the inputs was <see langword="null"/>.</exception>
9897
/// <exception cref="DockerApiException">The input is invalid or the daemon experienced an error.</exception>
@@ -108,7 +107,7 @@ public interface IContainerOperations
108107
/// <param name="cancellationToken">When triggered, the operation will stop at the next available time, if possible.</param>
109108
/// <returns>A <see cref="Task{TResult}"/> that resolves to a <see cref="MultiplexedStream"/>, which provides the log information.
110109
/// If the container wasn't created with a TTY, this stream is multiplexed.</returns>
111-
/// <remarks>The corresponding commands in the Docker CLI are <c>docker inspect</c> and <c>docker container inspect</c>.</remarks>
110+
/// <br/>The corresponding command in the Docker CLI are </c> <c>docker logs</c> and <c>docker container logs</c>.</remarks>
112111
/// <exception cref="DockerContainerNotFoundException">No such container was found.</exception>
113112
/// <exception cref="ArgumentNullException">One or more of the inputs was <see langword="null"/>.</exception>
114113
/// <exception cref="DockerApiException">The input is invalid or the daemon experienced an error.</exception>
@@ -401,7 +400,7 @@ public interface IContainerOperations
401400
/// <param name="cancellationToken">When triggered, the operation will stop at the next available time, if possible.</param>
402401
/// <returns>A <see cref="Task{TResult}"/> that resolves to a <see cref="ContainerUpdateResponse"/>, which provides updated
403402
/// information about the container.</returns>
404-
/// <remarks>The corresponding command in the Docker CLI is <c>docker update</c>.</remarks>
403+
/// <remarks>The corresponding command in the Docker CLI are <c>docker update</c> and <c>docker container update</c>.</remarks>
405404
/// <exception cref="DockerContainerNotFoundException">No such container was found.</exception>
406405
/// <exception cref="ArgumentNullException">One or more of the inputs was <see langword="null"/>.</exception>
407406
/// <exception cref="DockerApiException">The input is invalid or the daemon experienced an error.</exception>

0 commit comments

Comments
 (0)