tag:help.appveyor.com,2012-11-13:/discussions/questions/61571-how-to-build-an-docker-imagesAppVeyor: Discussion 2023-02-02T21:48:02Ztag:help.appveyor.com,2012-11-13:Comment/577264122023-01-27T16:50:55Z2023-01-27T16:50:57ZHow to build an docker images<div><p>Hello,<br>
When I tried to use docker I got an error:</p>
<pre>
<code>docker run --rm busybox echo hello_world
docker: C:\appveyor\projects\fms-analytics-standard-zone-transform\Publish-ECR.ps1:16
Line |
16 | docker run --rm busybox echo hello_world
| ~~~~~~
| The term 'docker' is not recognized as a name of a cmdlet,
| function, script file, or executable program. Check the
| spelling of the name, or if a path was included, verify that
| the path is correct and try again.</code>
</pre>
<p>I think I use windows image because I have in appveyor.yml<br>
image: Visual Studio 2019</p>
<p>My end goal is to do "docker build" and publish to ECR.<br>
I have made it working with a "process runner" on my local machine now I want to make it run on the real server.</p></div>ibardarovtag:help.appveyor.com,2012-11-13:Comment/577264122023-01-27T20:05:32Z2023-01-27T20:05:32ZHow to build an docker images<div><p>I've been able to use <code>docker</code> command from PowerShell in a simple test: <a href="https://gist.githubusercontent.com/FeodorFitsner/e2c40b1711c5f0b54799d80fdfef73ce/raw/bb97d9d7f1312dd5b1f6eca51d7c457c462196ed/appveyor2.yml">https://gist.githubusercontent.com/FeodorFitsner/e2c40b1711c5f0b547...</a></p>
<p>Build results: <a href="https://ci.appveyor.com/project/FeodorFitsner/appveyor-check/builds/46065874">https://ci.appveyor.com/project/FeodorFitsner/appveyor-check/builds...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/577264122023-01-31T12:40:25Z2023-01-31T12:40:25ZHow to build an docker images<div><p>Thank you!<br>
It seems that we don't have that image in our setup.</p></div>ibardarov