I have installed docker tool box in windows 8.1 machine. I want to enable docker API setting. I did below step to enable docker API setting. Docker is throwing below error message after updating below steps. Please help me how to fix this issues ?
Steps for enable Docker API :-
- Start “Docker Quickstart Terminal”. It starts Bash shell and is the place where all following commands will be run. Run docker-machine ip command and note the IP address of the docker host machine. Then do
- docker-machine ssh
- cd /var/lib/boot2docker
- sudo vi profile This starts “vi” editor in elevated privileges mode required for editing “profile” file, where Docker host settings are. (If as a Windows user you are not familiar with vi, here’s is super-basic crash course on it. When file is open in the vi, vi is not in editing mode. Press “i” to start edit mode. Now you can make changes. After you made all the changes, hit Esc and then ZZ to save changes and exit vi. If you need to exit vi without saving changes, after Escplease type :q! and hit Enter. “:” turns on vi’s command mode, and “q!” command means exit without saving. Detailed vi command info is here.)
- Using vi, change DOCKER_HOST to be DOCKER_HOST=’-H tcp://0.0.0.0:2375’, and set DOCKER_TLS=no. Save changes as described above.
- exit to leave SSH session.
- docker-machine restart
An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json
?all=1: open //./pipe/docker_engine: The system cannot find the file specified.
Docker Toolbox Info
Docker Tool box Info
Server Version: 1.12.3
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Network: null bridge host overlay
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.27-boot2docker
Operating System: Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016
Total Memory: 995.8 MiB