1 Reply Latest reply on Jun 24, 2016 4:50 PM by rafabene1

    How do I use the docker command line?

    burrsutter

      I wish to use the "docker" command line tool as in "docker ps", "docker build" and "docker run", how can I connect "docker" to the Docker Daemon inside the CDK, so I can create RHEL-based Docker images?

        • 1. Re: How do I use the docker command line?
          rafabene1

          CDK allows access to the internal docker daemon through the "service-manager" plugin.

           

          When you execute "vagrant service-manager env docker" it will show all the environment variables that needs to be set in order for the docker CLI point to CDK's docker daemon.

           

          A shortcut to have the environment variables set is:

          $ eval "$(vagrant service-manager env docker)"