You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify docker installation earlier when deploying container (#9667)
* Verify docker installation earlier when deploying container
When containers are configured we want the container and the worker to
be updated together (ideally). Failing earlier when we know docker is
not installed keeps us from getting into a disjointed state between the
worker and container.
* update error message and make it conditional on there being a dockerfile
* clean up tests a bit
---------
Co-authored-by: emily-shen <[email protected]>
// We assume this command is unlikely to fail for reasons other than the Docker daemon not running, or the Docker CLI not being installed or in the PATH.
58
61
thrownewError(
59
-
`The Docker CLI could not be launched. Please ensure that Docker is installed and running. You can specify an executable with the environment variable WRANGLER_DOCKER_BIN.\n`+
60
-
`Other container tooling that is compatible with the Docker CLI may work, but is not yet guaranteed to do so.\n`+
61
-
`To suppress this error if you do not intend on triggering any container instances, set dev.enable_containers to false in your Wrangler config or passing in --enable-containers=false.`
62
+
`The Docker CLI could not be launched. Please ensure that the Docker CLI is installed and the daemon is running.\n`+
63
+
`Other container tooling that is compatible with the Docker CLI and engine may work, but is not yet guaranteed to do so. You can specify an executable with the environment variable WRANGLER_DOCKER_BIN and a socket with WRANGLER_DOCKER_HOST.`+
64
+
`${isDev ? "\nTo suppress this error if you do not intend on triggering any container instances, set dev.enable_containers to false in your Wrangler config or passing in --enable-containers=false." : ""}`
`The Docker CLI could not be launched. Please ensure that Docker is installed and running. You can specify an executable with the environment variable WRANGLER_DOCKER_BIN.`
152
+
`The Docker CLI could not be launched. Please ensure that the Docker CLI is installed and the daemon is running.`
153
+
);
154
+
expect(awaitworker.output).toContain(
155
+
`To suppress this error if you do not intend on triggering any container instances, set dev.enable_containers to false in your Wrangler config or passing in --enable-containers=false.`
[Error: The Docker CLI could not be launched. Please ensure that the Docker CLI is installed and the daemon is running.
8721
+
Other container tooling that is compatible with the Docker CLI and engine may work, but is not yet guaranteed to do so. You can specify an executable with the environment variable WRANGLER_DOCKER_BIN and a socket with WRANGLER_DOCKER_HOST.]
8722
+
`);
8723
+
});
8724
+
8725
+
it("should support durable object bindings to SQLite classes with containers (dockerfile flow)",async()=>{
0 commit comments