act/pkg/container
Jay Pipes d67e282f68
use container image platform only on docker 1.41+ (#591)
Commit af5140f13e introduced support for
specifying a container image platform for cross-platform image building.

Unfortunately, attempting to execute a docker command that includes the
`--platform` flag against Docker daemons using API Version 1.40 and
before results in the following error:

```
"specify container image platform" requires API version 1.41, but the Docker daemon API version is 1.40
```

To allow `act` to be used on the 19.03 Docker CE and earlier versions,
this patch simply checks the Docker daemon API version and only
specifies platform specification when the daemon API version is 1.41 or
greater.

Fixes Issue #586
2021-03-30 10:10:42 -07:00
..
docker_build.go Add option to run custom architecture (container platform) (#525) 2021-03-28 21:08:40 -07:00
docker_images.go Add option to run custom architecture (container platform) (#525) 2021-03-28 21:08:40 -07:00
docker_images_test.go Add option to run custom architecture (container platform) (#525) 2021-03-28 21:08:40 -07:00
docker_logger.go add commands support 2020-02-20 21:05:42 -05:00
docker_pull.go Add option to run custom architecture (container platform) (#525) 2021-03-28 21:08:40 -07:00
docker_pull_test.go initial load of yaml working 2020-02-04 16:38:41 -08:00
docker_run.go use container image platform only on docker 1.41+ (#591) 2021-03-30 10:10:42 -07:00
docker_volume.go Fix container volumes being reused sometimes (#283) 2020-06-18 08:21:55 -07:00