22 KiB
@cloudflare/containers-shared
0.16.0
Minor Changes
-
#14311
34e0cefThanks @sherryliu-lsy! - Add Google Artifact Registry support tocontainers registries configurewrangler containers registries configurenow recognizes*-docker.pkg.dev(Google Artifact Registry) domains.- The Google service account email is the public credential, supplied with
--gar-email. It must match theclient_emailin the service account key. - The service account JSON key is the private credential. It is provided via stdin (a file path, raw JSON, or base64) or an interactive prompt (a file path or base64) — never as a CLI flag, so it does not appear in shell history. The key is validated against
--gar-emailand stored base64-encoded. - Secret reuse inherits the existence-first flow: when the target Secrets Store secret already exists, it is reused by reference and the key is not required. In that case the email cannot be verified locally; it is validated against the key when images are pulled.
<path-to-key>.json | npx wrangler@latest containers registries configure <region>-docker.pkg.dev --gar-email=<service-account-email> --secret-name=Google_Service_Account_JSON_Key - The Google service account email is the public credential, supplied with
0.15.1
Patch Changes
-
#13963
adc9221Thanks @gabivlj! - Preserve sibling container image tags during local dev cleanupWrangler now keeps other
cloudflare-devimage tags from the same dev session when multiple containers share a Dockerfile. Previously, duplicate-image cleanup could remove earlier container tags if Docker BuildKit produced the same image ID for each build.
0.15.0
Minor Changes
-
#12656
ae047eeThanks @mikenomitch! - Add--containers-rollout=noneThis allows you to skip deploying a container. This is useful if you know that your container is not going to be updated or you don't have Docker locally, but still want to make changes to your Worker.
Patch Changes
-
#13950
f78d435Thanks @dario-piotrowicz! - Improve the Docker CLI error message to be more actionable.Include a link to Docker installation docs, platform-specific instructions for starting the daemon, and guidance for alternative Docker-compatible CLIs.
-
#13950
f78d435Thanks @dario-piotrowicz! - RefactorverifyDockerInstalledto accept an options object instead of positional parametersThe function signature changed from
(dockerPath: string, isDev?: boolean)to({ dockerPath, isDev }: { dockerPath: string; isDev?: boolean })for improved readability and extensibility.
0.14.1
Patch Changes
-
#13611
6e99febThanks @smaldd14! - Support Cloudflare-managed registry images in Vite plugin local devPreviously, using a
registry.cloudflare.comimage in acontainersbinding would crashvite devwith an unsupported error. The Vite plugin now configures the Cloudflare API client usingCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDbefore pulling container images, matching the behavior ofwrangler dev.
0.14.0
Minor Changes
- #13571
7dc0433Thanks @must108! - Add regional and jurisdictional placement constraints for Containers. Users can now setconstraints.regionsandconstraints.jurisdictionin wrangler config to control where containers run.
0.13.1
Patch Changes
-
#13049
7a5be20Thanks @nikitassharma! - add library-push flag to containers registries credentialsThis flag is not available for public use.
0.13.0
Minor Changes
-
#12943
0f10583Thanks @gabivlj! - containers: Upgrade proxy-everything to cloudflare/proxy-everything:3cb1195This proxy-everything version adds support to filter DNS queries, necessary for interceptOutboundHttp constrained by domain.
Patch Changes
-
#12893
782df44Thanks @gpanders! - Rewritewrangler containers listto use the paginated Dash API endpointwrangler containers listnow fetches from the/dash/applicationsendpoint instead of/applications, displaying results in a paginated table with columns for ID, Name, State, Live Instances, and Last Modified. Container state is derived from health instance counters (active, degraded, provisioning, ready).The command supports
--per-page(default 25) for interactive pagination with Enter to load more and q/Esc to quit, and--jsonfor machine-readable output. Non-interactive environments load all results in a single request.
0.12.0
Minor Changes
-
#12873
2b9a186Thanks @gpanders! - Addwrangler containers instances <application_id>command to list container instancesLists all container instances for a given application, matching the Dash instances view. Displays instance ID, state, location, version, and creation time. Supports pagination for applications with many instances. Also adds paginated request support to the containers-shared API client.
0.11.0
Minor Changes
-
#12857
3f09bb2Thanks @gabivlj! - Update theproxy-everythingimage used for containers local devThe egress interceptor image now supports HTTPS and ingress over HTTP CONNECT in workerd.
0.10.0
Minor Changes
-
#12649
35b2c56Thanks @gabivlj! - Add experimental support for containers to workers communication with interceptOutboundHttpThis feature is experimental and requires adding the "experimental" compatibility flag to your Wrangler configuration.
Patch Changes
-
#11332
6a8aa5fThanks @nikitassharma! - Users are now able to configure DockerHub credentials and have containers reference images stored there.DockerHub can be configured as follows:
echo $PAT_TOKEN | npx wrangler@latest containers registries configure docker.io --dockerhub-username=user --secret-name=DockerHub_PAT_TokenContainers can then specify an image from DockerHub in their
wrangler.jsoncas follows:"containers": { "image": "docker.io/namespace/image:tag", ... }
0.9.0
Minor Changes
- #12433
2acb277Thanks @martinezjandrew! - Updated registries delete subcommand to handle new API response that now returns a secrets store secret reference after deletion. Wrangler will now prompt the user if they want to delete the associated secret. If so, added new logic to retrieve a secret by its name. The subcommand will then delete the secret.
0.8.0
Minor Changes
- #11755
0f8d69dThanks @nikitassharma! - Users can now specifyconstraints.tiersfor their container applications.tieris deprecated in favor oftiers. If left unset, we will default totiers: [1, 2]. Note thatconstraintsis an experimental feature.
0.7.0
Minor Changes
-
#11702
f612b46Thanks @gpanders! - Add support for trusted_user_ca_keys in WranglerYou can now configure SSH trusted user CA keys for containers. Add the following to your wrangler.toml:
[[containers.trusted_user_ca_keys]] public_key = "ssh-ed25519 AAAAC3..."This allows you to specify CA public keys that can be used to verify SSH user certificates.
-
#11437
9e360f6Thanks @ichernetsky-cf! - Drop deprecated containersobservability.loggingfield
Patch Changes
- #11768
2a4299dThanks @gpanders! - Rename "durable_objects_active" field in ApplicationHealthInstances to "active"
0.6.0
Minor Changes
- #11196
171cfd9Thanks @emily-shen! - For containers being created in a FedRAMP high environment, registry credentials are encrypted by the container platform. Update wrangler to correctly send a request to configure a registry for FedRAMP containers.
0.5.0
Minor Changes
0.4.0
Minor Changes
-
#11360
6b38532Thanks @emily-shen! - Containers: Allow users to directly authenticate external image registries in local devPreviously, we always queried the API for stored registry credentials and used those to pull images. This means that if you are using an external registry (ECR, dockerhub) then you have to configure registry credentials remotely before running local dev.
Now you can directly authenticate with your external registry provider (using
docker loginetc.), and Wrangler or Vite will be able to pull the image specified in thecontainers.imagefield in your config file.The Cloudflare-managed registry (registry.cloudflare.com) currently still does not work with the Vite plugin.
0.3.0
Minor Changes
-
#10605
b55a3c7Thanks @emily-shen! - Add command to configure credentials for non-Cloudflare container registriesNote this is a closed/experimental command that will not work without the appropriate account-level capabilities.
0.2.13
Patch Changes
-
#11007
cf16debThanks @gpanders! - Correctly handle image names that contain a slash -
#11000
a6de9dbThanks @jonboulle! - always load container image into local store during buildBuildKit supports different build drivers. When using the more modern
docker-containerdriver (which is now the default on some systems, e.g. a standard Docker installation on Fedora Linux), it will not automatically load the built image into the local image store. Since wrangler expects the image to be there (e.g. when callinggetImageRepoTags), it will thus fail, e.g.:⎔ Preparing container image(s)... [+] Building 0.3s (8/8) FINISHED docker-container:default [...] WARNING: No output specified with docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load ✘ [ERROR] failed inspecting image locally: Error response from daemon: failed to find image cloudflare-dev/sandbox:f86e40e4: docker.io/cloudflare-dev/sandbox:f86e40e4: No such imageExplicitly setting the
--loadflag (equivalent to-o type=docker) during the build fixes this and should make the build a bit more portable without requiring users to change their default build driver configuration.
0.2.12
Patch Changes
- #10634
62656bdThanks @emily-shen! - fix: error if the container image uri has an account id that doesn't match the current account
0.2.11
Patch Changes
-
#10623
7a6381cThanks @IRCody! - Handle more cases for correctly resolving the full uri for an image when using containers push. -
#10808
a7f6966Thanks @nikitassharma! - When returning the default managed registry, inspect the environment variableWRANGLER_API_ENVIRONMENTto determine if we should be returning the production or staging registry. -
#10769
0a554f9Thanks @penalosa! - Mark more errors asUserErrorto disable Sentry reporting
0.2.10
Patch Changes
-
#10289
a5a1426Thanks @emily-shen! - Cleanup container images created during local dev if no changes have been made.We now untag old images that were created by Wrangler/Vite if we find that the image content and configuration is unchanged, so that we don't keep accumulating image tags.
0.2.9
Patch Changes
-
#10258
d391076Thanks @nikitassharma! - Add the option to allow all tiers when creating a container -
#10232
e7cae16Thanks @emily-shen! - include containers API calls in output of WRANGLER_LOG=debug
0.2.8
Patch Changes
-
#10061
f8a80a8Thanks @emily-shen! - feat(containers): try to automatically get the socket path that the container engine is listening on.Currently, if your container engine isn't set up to listen on
unix:///var/run/docker.sock(or isn't symlinked to that), then you have to manually set this via thedev.containerEnginefield in your Wrangler config, or via the env varsWRANGLER_DOCKER_HOST. This change means that we will try and get the socket of the current context automatically. This should reduce the occurrence of opaqueinternal errors thrown by the runtime when the daemon is not listening onunix:///var/run/docker.sock.In addition to
WRANGLER_DOCKER_HOST,DOCKER_HOSTcan now also be used to set the container engine socket address.
0.2.7
Patch Changes
-
#9819
0c4008cThanks @CarmenPopoviciu! - feat(vite-plugin): Add containers support invite devAdds support for Cloudflare Containers in
vite dev. Please note that at the time of this PR a container image can only specify the path to aDockerfile. Support for registry links will be added in a later version, as will containers support invite preview.
0.2.6
Patch Changes
- #9925
b46386cThanks @dario-piotrowicz! - clarify the docker build error message
0.2.5
Patch Changes
-
#9833
3743896Thanks @dario-piotrowicz! - extendprepareContainerImagesForDevto allow aborting a container's build process -
#9923
c01c4eeThanks @gpanders! - Fix image name resolution when modifying a container application
0.2.4
Patch Changes
-
#9888
d2fe58bThanks @IRCody! - Remove undici dependency from @cloudflare/containers-shared -
#9879
e10c3e2Thanks @dario-piotrowicz! - fix: enable Dockerfile exposed port validation on linux as well -
#9879
e10c3e2Thanks @dario-piotrowicz! - update error message presented when no port is exported by the image
0.2.3
Patch Changes
-
#9872
a727db3Thanks @emily-shen! - fix: resolve Dockerfile path relative to the Wrangler config pathThis fixes a bug where Wrangler would not be able to find a Dockerfile if a Wrangler config path had been specified with the
--configflag.
0.2.2
Patch Changes
0.2.1
Patch Changes
- #9596
5162c51Thanks @CarmenPopoviciu! - add ability to pull images for containers local dev
0.2.0
Minor Changes
- #9675
caf97e4Thanks @emily-shen! -containers-sharedcontains shared code relating to containers that is used acrossworkers-sdk.
Patch Changes
-
#9653
8a60fe7Thanks @penalosa! - RenameWRANGLER_CONTAINERS_DOCKER_PATHtoWRANGLER_DOCKER_BIN -
#9653
8a60fe7Thanks @penalosa! - Add a warning banner towrangler cloudchamberandwrangler containerscommands -
#9605
17d23d8Thanks @emily-shen! - Add rebuild hotkey for containers local dev, and clean up containers at the end of a dev session.