Version v1.39 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
Docker beta
Note
This feature is currently experimental and subject to change.Deploying applications to a local Docker daemon
For simple container-based applications that don’t rely on Kubernetes resource types, Skaffold can “deploy” these applications by running application containers directly in your local Docker daemon. This enables application developers who are not yet ready to make the jump to Kubernetes to take advantage of the streamlined development experience Skaffold provides.
Additionally, deploying to Docker bypasses the overhead of pushing images to a remote registry, and provides a faster time to running application than traditional Kubernetes deployments.
Configuration
To deploy to your local Docker daemon, specify the docker
deploy type
in the deploy
section of your skaffold.yaml
.
The docker
deploy type offers the following options:
Option | Description | Default |
---|---|---|
useCompose |
tells skaffold whether or not to deploy using docker-compose . |
false |
images |
Required container images to run in Docker. | [] |
Example
The following deploy
section instructs Skaffold to deploy
the application image my-image
to the local Docker daemon:
build:
artifacts:
- image: my-image
deploy:
docker:
images: [my-image]
Note
Images listed to be deployed with thedocker
deployer must also have a corresponding build artifact built by Skaffold.