I asked the exact same thing some months ago, see

http://sourceforge.net/p/fish/mailman/fish-users/?viewmonth=201501&viewday=24&style=threaded

to summarise use:
eval docker (docker-machine config prl) ps
or
docker (docker-machine config prl | tr \ \t \n) ps

// Rickard

On Tue, Mar 24, 2015 at 1:44 PM, Osamu OKANO <okano.os...@gmail.com> wrote:

> Hi!
>
> How do I do the following in fish?
> $(docker-machine env local)
>
> When I run following in fish,
> docker-machine env local
> Outputs are
> set -x DOCKER_TLS_VERIFY yes
> set -x DOCKER_CERT_PATH /Users/osamu/.docker/machine/machines/local
> set -x DOCKER_HOST tcp://192.168.99.100:2376
>
> When I run following in fish,
> eval (docker-machine env local)
> printenv|grep DOCKER
> DOCKER_CERT_PATH=/Users/osamu/.boot2docker/certs/boot2docker-vm
>
> DOCKER_TLS_VERIFY=yes:set:-x:DOCKER_CERT_PATH:/Users/osamu/.docker/machine/machines/local:set:-x:DOCKER_HOST:tcp://
> 192.168.99.100:2376
>
> A simpe but non-smart solution is copy and paste.
> Is there any simple and smart solution?
>
> Regards.
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to