Chapter 8. Reusing the Minishift Docker Daemon
When running OpenShift in a single VM, you can reuse the Docker daemon managed by Minishift for other Docker use-cases as well. By using the same docker daemon as Minishift, you can speed up your local development.
In order to configure your console to reuse the Minishift Docker dameon, follow these steps:
- Make sure that you have the Docker client binary installed on your machine. For information about specific binary installations for your operating system, see the Docker installation site.
-
Start Minishift with the
minishift start
command. Use
minishift docker-env
to display the command you need to type into your shell in order to configure your Docker client. The command output will differ depending on OS and shell type.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Test the connection, running the following command:
docker ps
~]$ docker ps
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
If successful, the shell will print a list of running containers.