Skip to content

Commit

Permalink
fix(#634): JsonReaderException in Docker.DotNet with Docker Desktop 4…
Browse files Browse the repository at this point in the history
….13.0
  • Loading branch information
HofmeisterAn committed Oct 24, 2022
1 parent 48fa89f commit a5d45f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- 604 Do not deny all files in the Docker image tarball when a `.dockerignore` entry ends with `/`
- 610 Do not deny all files in the Docker image tarball when a `.dockerignore` entry ends with `/*`
- 632 Execute local database scripts (inside the container) against `localhost`
- 634 JsonReaderException in Docker.DotNet with Docker Desktop 4.13.0 (https://github.com/dotnet/Docker.DotNet/issues/595)

## [2.1.0]

Expand Down
3 changes: 2 additions & 1 deletion src/Testcontainers/Clients/DockerImageOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ public async Task CreateAsync(IDockerImage image, IDockerRegistryAuthenticationC
{
var createParameters = new ImagesCreateParameters
{
FromImage = image.FullName,
FromImage = image.FullName.Replace(":" + image.Tag, string.Empty), // Workaround until https://github.com/dotnet/Docker.DotNet/issues/595 is fixed.
Tag = image.Tag,
};

var authConfig = new AuthConfig
Expand Down

0 comments on commit a5d45f8

Please sign in to comment.