зеркало из https://github.com/docker/kitematic.git
Moved all to named pipe
Signed-off-by: French Ben <frenchben@docker.com>
This commit is contained in:
Родитель
806eb3b00c
Коммит
3c8e9c8b9e
|
@ -35,11 +35,7 @@ var DockerUtil = {
|
||||||
if (ip.indexOf('local') !== -1) {
|
if (ip.indexOf('local') !== -1) {
|
||||||
try {
|
try {
|
||||||
if (util.isWindows()) {
|
if (util.isWindows()) {
|
||||||
this.client = new dockerode({
|
this.client = new dockerode({socketPath: '//./pipe/docker_engine'});
|
||||||
protocol: 'http',
|
|
||||||
host: ip,
|
|
||||||
port: 2375
|
|
||||||
});
|
|
||||||
} else {
|
} else {
|
||||||
this.client = new dockerode({socketPath: '/var/run/docker.sock'});
|
this.client = new dockerode({socketPath: '/var/run/docker.sock'});
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ module.exports = {
|
||||||
if (this.native === null) {
|
if (this.native === null) {
|
||||||
if (this.isWindows()) {
|
if (this.isWindows()) {
|
||||||
this.native = http.get({
|
this.native = http.get({
|
||||||
url: `http:////./pipe/docker_engine/v1.23/version`
|
url: `http:////./pipe/docker_engine/version`
|
||||||
}, (response) => {
|
}, (response) => {
|
||||||
if (response.statusCode !== 200 ) {
|
if (response.statusCode !== 200 ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче