Skip to content
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.

Remove connectivity check on image pull #699

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/images/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { _, fs, t, path, isBlank, lazy_require } from 'azk';
import { publish } from 'azk/utils/postal';
import { async } from 'azk/utils/promises';
import { ManifestError, NoInternetConnection } from 'azk/utils/errors';
import { net } from 'azk/utils';
import { ManifestError } from 'azk/utils/errors';
import Utils from 'azk/utils';
import { default as tracker } from 'azk/utils/tracker';

Expand Down Expand Up @@ -71,12 +70,6 @@ export class Image {
type: "action", context: "image", action: "pull_image", data: this
});

// Check is online before try pull
var currentOnline = yield net.isOnlineCheck();
if ( !currentOnline ) {
throw new NoInternetConnection();
}

yield this._track('pull');
yield lazy.docker.pull(this.repository, this.tag);

Expand Down