Using Docker with Kubernetes involves several steps:
1. Install Docker: You need Docker installed on your machine before you start using it with Kubernetes. Docker is used to create, manage, and run your application containers.
```
sudo apt-get update
sudo apt-get install docker.io
```
1. Install Kubernetes: Follow the installation instructions to set up Kubernetes on your system. You can install it using a package manager like apt-get or a container orchestration platform like Kubernetes Engine on Google Cloud.
For instance, you can install Kubernetes using snap:
```
sudo snap install microk8s —classic
```
1. Create Docker Container: Once Docker is installed, you can start by creating a Dockerfile and run the command `docker build` to create a Docker container.
1. Push Docker Container to DockerHub or Container Registry: After your Docker container is ready, you need to push this Docker container to a Docker registry such as Docker Hub or Google Container Registry etc. Use `docker push` command to push your container.
1. Create Kubernetes Deployment: Deployment instructs Kubernetes how to create and update instances of your application. To create a deployment, you’ll need to have a YAML file that describes the deployment. Then run `kubectl create -f /your-path-to-file/deployment.yaml`.
1. Create Kubernetes Service: Service in Kubernetes is an abstraction which defines a logical set of Pods and a policy by which to access them. To create a Kubernetes service, make another YAML file and run `kubectl create -f /your-path-to-file/service.yaml`.
1. Scaling and Updating Your Application: Kubernetes allows you to scale your application up and down, roll out new versions, or roll back to previous versions.
Remember to configure Docker as Kubernetes container runtime if Kubernetes doesn’t select it by default.
Please note that these steps are a high-level overview. There might be additional requirements and variations depending on your specific use case. It’s always best to refer to Docker and Kubernetes official documentation to follow the latest and most accurate set up process.