# Install Docker for Kata Containers on CentOS > **Note:** > > - This guide assumes you have > [already installed the Kata Containers packages](../centos-installation-guide.md). 1. Install Docker with the following commands: > **Notes:** > > - This step is only required if Docker is not installed on the system. > - Newer versions of Docker have > [removed devicemapper support](https://github.com/kata-containers/documentation/issues/373) > so the following commands install the latest version, which includes > devicemapper support. > - To remove the lock on the docker package to allow it to be updated: > ```sh > $ sudo yum versionlock delete docker-ce > ``` ```bash $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo $ sudo yum -y install 'docker-ce-18.06.2.ce-3*' yum-plugin-versionlock $ sudo yum versionlock docker-ce ``` For more information on installing Docker please refer to the [Docker Guide](https://docs.docker.com/engine/installation/linux/centos). 2. Configure Docker to use Kata Containers by default with one of the following methods: 1. systemd ```bash $ sudo mkdir -p /etc/systemd/system/docker.service.d/ $ cat <