Tye Run with --docker does not warn about required image
See original GitHub issueDescribe the bug
If tye run is executed with –docker flag on a machine without mandatory .NET Core Image mcr.microsoft.com/dotnet/core/sdk:3.1-buster tye is not working but user does not see any information message to pull the mandatory image.
To Reproduce
Execute tye run --docker on a machine without mcr.microsoft.com/dotnet/core/sdk:3.1-buster docker image.
Resolution
Add console log message to show that mandatory image is required or a confirm message to allow pull directly from tye process.
Further technical details
❯ tye run --docker
[19:22:55 INF] Executing application from E:\code\Tye-Samples\tye.yaml
[19:22:55 INF] Dashboard running on http://127.0.0.1:8000
[19:22:55 INF] Publishing project E:\code\Tye-Samples\FrontEnd\FrontEnd.csproj
[19:22:55 INF] Publishing project E:\code\Tye-Samples\Api\Api.csproj
[19:22:57 INF] Running docker command run -d -w /app -v E:\code\Tye-Samples\Api:/app -v C:\Users\unai\AppData\Roaming\Microsoft\UserSecrets:/root/.microsoft/usersecrets:ro -e DOTNET_ENVIRONMENT=Development -e DOTNET_LOGGING__CONSOLE__DISABLECOLORS=true -e ASPNETCORE_URLS=https://*:443;http://*:80 -e HTTPS_PORT=4023 -e PORT=443;80 -e
SERVICE__FRONTEND__PROTOCOL=http -e FRONTEND_SERVICE_PROTOCOL=http -e SERVICE__FRONTEND__PORT=4022 -e FRONTEND_SERVICE_PORT=4022 -e SERVICE__FRONTEND__HOST=host.docker.internal -e FRONTEND_SERVICE_HOST=host.docker.internal -e SERVICE__API__PROTOCOL=http -e API_SERVICE_PROTOCOL=http -e SERVICE__API__PORT=4024 -e API_SERVICE_PORT=4024 -e SERVICE__API__HOST=host.docker.internal -e API_SERVICE_HOST=host.docker.internal -e APP_INSTANCE=api_fcd09330-e -p 4023:443 -p 4024:80 --name api_fcd09330-e --restart=unless-stopped mcr.microsoft.com/dotnet/core/sdk:3.1-buster dotnet /app/bin/Debug/netcoreapp3.1/publish/Api.dll
[19:22:57 INF] Running docker command run -d -w /app -v E:\code\Tye-Samples\FrontEnd:/app -v C:\Users\unai\AppData\Roaming\Microsoft\UserSecrets:/root/.microsoft/usersecrets:ro -e DOTNET_ENVIRONMENT=Development -e DOTNET_LOGGING__CONSOLE__DISABLECOLORS=true -e ASPNETCORE_URLS=https://*:443;http://*:80 -e HTTPS_PORT=4021 -e PORT=443;80 -e SERVICE__FRONTEND__PROTOCOL=http -e FRONTEND_SERVICE_PROTOCOL=http -e SERVICE__FRONTEND__PORT=4022 -e FRONTEND_SERVICE_PORT=4022 -e SERVICE__FRONTEND__HOST=host.docker.internal -e FRONTEND_SERVICE_HOST=host.docker.internal -e SERVICE__API__PROTOCOL=http -e API_SERVICE_PROTOCOL=http -e SERVICE__API__PORT=4024 -e API_SERVICE_PORT=4024 -e SERVICE__API__HOST=host.docker.internal -e API_SERVICE_HOST=host.docker.internal -e APP_INSTANCE=frontend_38af6b2c-0 -p 4021:443 -p 4022:80 --name frontend_38af6b2c-0 --restart=unless-stopped mcr.microsoft.com/dotnet/core/sdk:3.1-buster dotnet /app/bin/Debug/netcoreapp3.1/publish/FrontEnd.dll
[19:22:58 INF] Running container api_fcd09330-e with ID 3d90fef594d5
[19:22:58 INF] Collecting docker logs for api_fcd09330-e.
[19:22:58 INF] Running container frontend_38af6b2c-0 with ID f457fbe2f4bc
[19:22:58 INF] Collecting docker logs for frontend_38af6b2c-0.
[19:22:58 INF] docker logs collection for api_fcd09330-e complete with exit code 0
[19:22:58 INF] Stopping container api_fcd09330-e with ID 3d90fef594d5
[19:22:58 INF] docker logs collection for frontend_38af6b2c-0 complete with exit code 0
[19:22:58 INF] Stopping container frontend_38af6b2c-0 with ID f457fbe2f4bc
[19:22:58 INF] Stopped container api_fcd09330-e with ID 3d90fef594d5 exited with 0
[19:22:59 INF] Stopped container frontend_38af6b2c-0 with ID f457fbe2f4bc exited with 0
[19:22:59 INF] Removed container api_fcd09330-e with ID 3d90fef594d5 exited with 0
[19:22:59 INF] Removed container frontend_38af6b2c-0 with ID f457fbe2f4bc exited with 0
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Troubleshoot Docker Engine installation
Troubleshoot Docker Engine installation. This page contains instructions for troubleshooting and diagnosing the Docker Engine installation.
Read more >Dockerfile does not receive environment variables
While running the docker file, it will give you warning because docker compose has no idea from where to pick the values for...
Read more >Top 20 Dockerfile best practices for security
Learn how to prevent security issues and optimize containerized applications by applying 20 Dockerfile best practices in your image ...
Read more >Docker executor | GitLab
Docker · Run CI/CD jobs in Docker containers · Use Docker to build Docker images · Authenticate with registry · Docker Layer Caching....
Read more >WARNING: The requested image's platform (linux/amd64) ...
This warning message indicates that there is a platform mismatch between the requested image and the host platform. The requested image was likely...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@unaizorrilla - I’m not seeing this fail, it just takes a really long time to pull and start. It looks like docker is pulling in the background without any UX to explain it.
We should still improve this we should probably pull all images before running anything. Then you know why you’re waiting.
Wow that seems pretty bad. I wonder what we’re doing that specifically avoids pulling the base image.