{"record":{"id":"6b0f7597fa62bf79","repo":"hashicorp/vagrant","slug":"vagrant-docker-cant-detect","errorCode":null,"errorMessage":"vagrant.docker_cant_detect","messagePattern":"vagrant\\.docker_cant_detect","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"plugins/provisioners/docker/installer.rb","lineNumber":16,"sourceCode":"# Copyright IBM Corp. 2010, 2025\n# SPDX-License-Identifier: BUSL-1.1\n\nrequire_relative \"../container/installer\"\n\nmodule VagrantPlugins\n  module DockerProvisioner\n    class Installer < VagrantPlugins::ContainerProvisioner::Installer\n      # This handles verifying the Docker installation, installing it if it was\n      # requested, and so on. This method will raise exceptions if things are\n      # wrong.\n      # @return [Boolean] - false if docker cannot be detected on machine, else\n      #                     true if docker installs correctly or is installed\n      def ensure_installed\n        if !@machine.guest.capability?(:docker_installed)\n          @machine.ui.warn(I18n.t(\"vagrant.docker_cant_detect\"))\n          return false\n        end\n\n        if !@machine.guest.capability(:docker_installed)\n          @machine.ui.detail(I18n.t(\"vagrant.docker_installing\"))\n          @machine.guest.capability(:docker_install)\n        end\n\n        if !@machine.guest.capability(:docker_installed)\n          raise DockerError, :install_failed\n        end\n\n        if @machine.guest.capability?(:docker_configure_vagrant_user)\n          @machine.guest.capability(:docker_configure_vagrant_user)\n        end\n\n        true\n      end","sourceCodeStart":1,"sourceCodeEnd":34,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/plugins/provisioners/docker/installer.rb#L1-L34","documentation":"Error \"vagrant.docker_cant_detect\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at plugins/provisioners/docker/installer.rb:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}