I am working on a windows 10 home so I have a docker toolbox and am using an IBM cloud app service : python-django app. I followed all the instructions given here:
https://console.bluemix.net/docs/apps/tutorials/tutorial_web.html#before-you-begin
I then open it in Pycharm (community edn) and try to build it locally by doing the following :
1)Import the settings.jar file (Given in the developer tools)
2)Tools > IBM Cloud Developer Tools > Build app in release mode
But I get the following error :
Creating image latestpy-django-tools based on Dockerfile-tools...
Building...
OK
Creating a container named 'latestpy-django-tools' from that image...
FAILED
An error Error response from daemon: invalid mode: /app was encountered while creating Docker container 'latestpy-django-tools'.
Please help!!
Kiera.k, on your Win10 system do you have Docker Toolbox or Docker for Windows? IBM Cloud Developer Tools requires Docker for Windows and will not work with Docker Toolbox.
Also, running build with the additional --trace parameter might provide some more details, if you have not already been using that. If you are using Docker for Windows, seeing all the output you get with --trace would be great.
Related
my environment :
MacOS M1 chip
VSCode version 1.66.2 arm64
local installed docker version : 20.10.22
I have situations that docker is not working in VSCode.
I already installed docker in local. But when I'm trying to connect docker in VSCode, repeatedly asking install docker extensions. (but I do have docker already ). and if I do reinstall with following the VSCode, the docker version was broken (changed to intel chip docker).
Does anybody know what's wrong?
Docker Extensions for VS Code have nothing to do with the Docker engine itself. They are like an additional layer of tools and commands over the installed Docker. E.g. they provide IntelliSense for editing Docker-related files, you can run Docker commands from F1 drop-down, etc. But you should be able to do all the required tasks even without Docker Extensions, e.g. from the Terminal in VS Code, but for this the path to Docker CLI (command line interface) should be added to PATH environment variable.
If you are getting failed to connect error then maybe Docker engine is not running. Please refer to https://docs.docker.com/desktop/install/mac-install/ and https://docs.docker.com/desktop/troubleshoot/overview/ about how to check if the engine is running and how to troubleshoot the issues.
If that doesn't help, please provide some specific error and steps, which led to it, then we'll try to find out.
I have Windows Docker Desktop, my os is Windows 10 enterprise , version 20h2
Docker for windows working... i have a small mvc asp.net3.1 application.
I create my docker image and i am able to run the container locally.
Everything is working from my local.
Now i uploaded the image to AWS ECR, create my taskDef and service.
Unfortunatelly the task does not start with the error :
failed to create new container runtime task: failed to create shim: hcs::CreateComputeSystem 95cade147ae4418ab3d68ea1a2c70800-2341308736: The container operating system does not match the host operat
I have seen some compatibility list from microsoft on the OS https://learn.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/version-compatibility?tabs=windows-server-2022%2Cwindows-11-21H2
I check i have hyperv and all..
Does anyone know how i can make the image compatible? This seems to be a known issues, but i am kind of blocked here.
Thanks
The error indicates you have a different image version versus the host version. What is the base image on your dockerfile? And do you know what is the host version on your AWS environment? For reference, here's the documentation on host compatibility: https://learn.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/version-compatibility?tabs=windows-server-2022%2Cwindows-11-21H2
I am using VS2019 with docker support (and windows docker running). When creating a console app there is no checkbox for docker support like there is for a dotnetcore web app. This means i cannot publish a container to ACR from VS2019.
I can create a console app and then add docker support and i can build image but embarrassing enough i cannot locate the image that's built or figure how to get it into ACR. running docker ps -a shows nothing in the container list.
So: is there support for pushing containers to ACR from VS2019 console apps?
If not then exactly how do i build a docker image of a console app and get it to ACR - am i left with CLI only?
thanks
Paul
I managed to solve this.
The issue was that the underlying version of windows 10 i was on would not allow me to create a docker image using a more modern supported version of windows nano server. Once i updated windows and double checked the base image that create image was using it would all work. Take the resulting docker image and use the azure cli to push to ACR and then i can run the container from ACI...
Bit tortuous compared to creating a web app but it worked...
I'm trying to build and deploy a project from GitHub (the following) using ZEIT Now hosting service using docker.
I followed the instructions in the readme.md of the GitHub project and as soon as i get to the fourth step:
now --public --docker (you might need to login once)
I get the following error:
"> Error! Unknown or unexpected option: --docker"
I installed Docker Toolbox (I'm running Windows 7 x64) and the docker command seems to be working normally in the command prompt, i've used it to identify the docker version i have which is 18.03.0-ce
I'm new to this so sorry if i'm getting anything wrong.
V2 accounts of Now.sh doesn't support Docker deployments.
We are using Windows OS 7 to develop an application using tech stack viz. docker, spring, java8, gradle etc. We have installed the docker toolbox on our machine.
Now the base image is located in our docker repository of our organization. But the docker is not able to identify the host.
We are able to connect to our repository from docker installed on a linux machine. In that case we have made changes in these 2 files viz.
1.
/etc/systemd/system/docker.service.d/daemon.conf
here we have added http_proxy and https_proxy.
2.
/etc/docker/daemon.json
here we have mentioned the host name as
{"insecure-registries":["<host-name>"]}
But we are not able to find these files in docker tool-box in windows 7.
Please let us know how to resolve this issue.
We are getting the following error in dockerBuildImage gradle task currently wherein it is not able to download the base image.
:dockerBuildImage FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dockerBuildImage'.
> Could not build image: Get https:<host-name>/v2/: x509: certificate signed by unknown authority
Please advise.
The following worked for me in docker toolbox
change the file /var/lib/boot2docker/profile to include following text:
--insecure-registry=<host1-name>
export "NO_PROXY=<host-name>"
export HTTP_PROXY=<value>
export HTTPS_PROXY=<value>
Then restart the docker-machine to make these changes visible.