-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update docker client version to 18.06.3 #4430
Changes from all commits
19f03eb
63e957a
037418b
17fb5a3
9853e21
5902c5b
5c1777e
b37ba53
8cf9ec6
84d524d
bfa6fa9
ef6439e
faf765c
e27ec04
3f22d34
31603d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,9 +21,9 @@ | |
- name: pause/resume at runc-level to restore docker consistency | ||
shell: | | ||
DOCKER_PAUSED=$(docker ps --filter status=paused --filter name=wsk{{ invoker_index }} -q --no-trunc) | ||
for C in $DOCKER_PAUSED; do docker-runc pause $C; done | ||
for C in $DOCKER_PAUSED; do docker-runc --root {{ invoker.docker.runcdir }} pause $C; done | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This comes from newer version Docker. Since that environment variable differs based on the current user, non-root users cannot unpause or resume containers with the previous command.
(Even, the location of root dir in docker 18.06 is So I explicitly configured this value. |
||
DOCKER_RUNNING=$(docker ps --filter status=running --filter name=wsk{{ invoker_index }} -q --no-trunc) | ||
for C2 in $DOCKER_RUNNING; do docker-runc resume $C2; done | ||
for C2 in $DOCKER_RUNNING; do docker-runc --root {{ invoker.docker.runcdir }} resume $C2; done | ||
TOTAL=$(($(echo $DOCKER_PAUSED | wc -w)+$(echo $DOCKER_RUNNING | wc -w))) | ||
echo "Handled $TOTAL remaining actions." | ||
register: runc_output | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one or more | ||
# contributor license agreements. See the NOTICE file distributed with | ||
# this work for additional information regarding copyright ownership. | ||
# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
# (the "License"); you may not use this file except in compliance with | ||
# the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
sudo gpasswd -a travis docker | ||
sudo -E bash -c 'echo '\''DOCKER_OPTS="-H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock --storage-driver=overlay --userns-remap=default"'\'' > /etc/default/docker' | ||
|
||
# Docker | ||
sudo apt-get clean | ||
sudo apt-get update | ||
|
||
# Need to update dpkg due to known issue: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1730627 | ||
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common dpkg | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
sudo apt-key fingerprint 0EBFCD88 | ||
|
||
# This is required because libseccomp2 (>= 2.3.0) is not provided in trusty by default | ||
sudo add-apt-repository -y ppa:ubuntu-sdk-team/ppa | ||
|
||
sudo add-apt-repository \ | ||
"deb [arch=$(uname -m | sed -e 's/x86_64/amd64/g')] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | ||
|
||
sudo apt-get update | ||
sudo apt-get -o Dpkg::Options::="--force-confold" --force-yes -y install docker-ce=18.06.3~ce~3-0~ubuntu containerd.io | ||
sudo service docker restart | ||
echo "Docker Version:" | ||
docker version | ||
echo "Docker Info:" | ||
docker info | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@houshengbo do you have plans to update Jenkins VMs to a higher Docker version once this PR is merged? This PR will update Docker to a higher version on the CLI side so that we needed to switch off runc usage in the invoker...