cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

Docker detection not working on Windows

Open VenkatIcon opened this issue 4 years ago • 7 comments

IDE type ( Pycharm Professional): trying to run cloud code local but it is displaying docker error reported. Cloudcode_Error

VenkatIcon avatar Jan 27 '22 16:01 VenkatIcon

To confirm, do you currently have Docker installed and running?

For context, minikube, the local cluster that runs behind the scenes for cloud run local deploys, requires the docker driver, so you'll need docker.

peterlin741 avatar Jan 27 '22 16:01 peterlin741

Thanks for your reply peter. I have Docker and it is running now but it still asking me to download docker.

VenkatIcon avatar Jan 27 '22 16:01 VenkatIcon

@VenkatIcon thanks for the update.

Could you please try running docker info on the command line and sharing the output?

etanshaul avatar Jan 27 '22 16:01 etanshaul

I ran docker info and here is the output. \Users\vmudiyala_iconhealth>docker info Client: Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc., v0.7.1) compose: Docker Compose (Docker Inc., v2.2.3) scan: Docker Scan (Docker Inc., v0.16.0)

Server: Containers: 1 Running: 1 Paused: 0 Stopped: 0 Images: 10 Server Version: 20.10.12 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d runc version: v1.0.2-0-g52b36a2 init version: de40ad0 Security Options: seccomp Profile: default Kernel Version: 5.10.60.1-microsoft-standard-WSL2 Operating System: Docker Desktop OSType: linux Architecture: x86_64 CPUs: 12 Total Memory: 12.29GiB Name: docker-desktop ID: Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support WARNING: No blkio throttle.write_bps_device support WARNING: No blkio throttle.read_iops_device support WARNING: No blkio throttle.write_iops_device support

VenkatIcon avatar Jan 27 '22 17:01 VenkatIcon

sorry one more thing. I'd like to know the exit code of the docker info command. For context, the plugin's logic for determining if Docker is installed in running is to check the output of docker info AND confirm that it is exit code 0.

To do this on linux / mac, you can just do:

docker info
echo $?

The echo $? should output 0 if it completed successully - could you share what yours outputs please?

(I'm wondering if WARNING: No blkio throttle.read_bps_device support is causing a non-zero exit code. I think we might need to loosen the logic here since that warning doesn't prevent you from using Docker).

etanshaul avatar Jan 27 '22 17:01 etanshaul

@VenkatIcon gentle ping on this issue to see if either it was resolved, and if not, if you could please provide the output from my above comment. Thanks.

etanshaul avatar Feb 10 '22 18:02 etanshaul

Hi @VenkatIcon just checking back on this in case you are still having issues here. We are currently investigating a fix for this, but are still having trouble reproducing. If you are still running into this, providing some info per my comment (https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues/3051#issuecomment-1023448877) would help. Thanks

etanshaul avatar Mar 02 '22 15:03 etanshaul