To install Docker as a service in your environment:
- Make sure that your Coder Enterprise deployment is hooked into the Docker registry that allows you to pull official Docker images.
- Create your Docker service for Coder Enterprise. At the minimum, you must provide the Image name and Tag, and you must check the box for Required Privileged Environment.
- Attach the Docker service to your environment. To do so, go to your environment overview page. Scroll down to Services and click Configure. Under Services, click + Service and select the Docker server that you just created. Note: The environment in which you run Docker as a service must have Docker installed. For example, all environments built using the codercom/enterprise-dev image have Docker installed, so Docker can be run alongside as a service.
- Click Rebuild Environment. Please note that rebuilding your environment will terminate running processes and erase all data outside your home directory.