Skip to content

Commit

Permalink
Favor the local image instead of pulling from dockerhub.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardLaszlo committed Nov 8, 2020
1 parent 34fdf87 commit 491e1c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions automatic-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ function prepareImage {

function runContainer {
log "Start a container from the $DOCKER_REPOSITORY image"
CONTAINER_ID=$( \
docker "$DOCKER_PARAMS" run --detach --tty "$DOCKER_REPOSITORY":"$NWJS_BRANCH" 2>/dev/null || \
docker "$DOCKER_PARAMS" run --detach --tty "$DOCKER_REPOSITORY"\
)
CONTAINER_ID=$(docker "$DOCKER_PARAMS" run --detach --tty "$DOCKER_REPOSITORY")
log "Container created successfully. Id: $CONTAINER_ID"
}

Expand Down

0 comments on commit 491e1c0

Please sign in to comment.