File tree Expand file tree Collapse file tree 12 files changed +25
-25
lines changed
scala/org/apache/openwhisk/core/containerpool/docker
tests/src/test/scala/org/apache/openwhisk/core/containerpool/docker/test Expand file tree Collapse file tree 12 files changed +25
-25
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ invoker:
212
212
userCpus: "{{ invoker_user_cpus | default() }}"
213
213
# Specify if it is allowed to deploy more than 1 invoker on a single machine.
214
214
allowMultipleInstances: "{{ invoker_allow_multiple_instances | default(false) }}"
215
- # Specify if it should use docker- runc or docker to pause/unpause containers
215
+ # Specify if it should use runc or docker to pause/unpause containers
216
216
useRunc: "{{ invoker_use_runc | default(true) }}"
217
217
docker:
218
218
become: "{{ invoker_docker_become | default(false) }}"
Original file line number Diff line number Diff line change 66
66
- name : pause/resume at runc-level to restore docker consistency
67
67
shell : |
68
68
DOCKER_PAUSED=$(docker ps --filter status=paused --filter name=wsk{{ invoker_index }} -q --no-trunc)
69
- for C in $DOCKER_PAUSED; do docker- runc --root {{ invoker.docker.runcdir }} pause $C; done
69
+ for C in $DOCKER_PAUSED; do runc --root {{ invoker.docker.runcdir }} pause $C; done
70
70
DOCKER_RUNNING=$(docker ps --filter status=running --filter name=wsk{{ invoker_index }} -q --no-trunc)
71
- for C2 in $DOCKER_RUNNING; do docker- runc --root {{ invoker.docker.runcdir }} resume $C2; done
71
+ for C2 in $DOCKER_RUNNING; do runc --root {{ invoker.docker.runcdir }} resume $C2; done
72
72
TOTAL=$(($(echo $DOCKER_PAUSED | wc -w)+$(echo $DOCKER_RUNNING | wc -w)))
73
73
echo "Handled $TOTAL remaining actions."
74
74
register : runc_output
Original file line number Diff line number Diff line change 383
383
{{ docker_sock | default('/var/run/docker.sock') }}:/var/run/docker.sock"
384
384
# ##
385
385
# The root runc directory varies based on the version of docker and runc.
386
- # When docker>=18.06 uses docker- runc the directory is /run/docker/runtime-runc/moby.
387
- # While docker- runc itself uses /run/runc for a root user or /run/user/<uid>/runc for a non-root user.
386
+ # When docker>=18.06 uses runc the directory is /run/docker/runtime-runc/moby.
387
+ # While runc itself uses /run/runc for a root user or /run/user/<uid>/runc for a non-root user.
388
388
# Currently, the invoker is running as a root user so the below configuration works as expected.
389
389
# But when the invoker needs to run as a non-root user or the version docker needs to be changed,
390
390
# the following configuration should be properly updated as well.
Original file line number Diff line number Diff line change @@ -28,18 +28,18 @@ ENV SWAGGER_UI_DOWNLOAD_SHA256=3d7ef5ddc59e10f132fe99771498f0f1ba7a2cbfb9585f986
28
28
# If you change the docker version here, it has implications on invoker runc support.
29
29
# Docker server version and the invoker docker version must be the same to enable runc usage.
30
30
# If this cannot be guaranteed, set `invoker_use_runc: false` in the ansible env.
31
- ENV DOCKER_VERSION=18.06.3-ce
31
+ ENV DOCKER_VERSION=23.0.6
32
32
33
33
RUN apk add --update openssl
34
34
35
35
# Uncomment to fetch latest version of docker instead: RUN wget -qO- https://get.docker.com | sh
36
36
# Install docker client
37
37
RUN curl -sSL -o docker-${DOCKER_VERSION}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
38
38
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker && \
39
- tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker- runc && \
39
+ tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/runc && \
40
40
rm -f docker-${DOCKER_VERSION}.tgz && \
41
41
chmod +x /usr/bin/docker && \
42
- chmod +x /usr/bin/docker- runc
42
+ chmod +x /usr/bin/runc
43
43
# #################################################################################################
44
44
45
45
# Install swagger-ui
Original file line number Diff line number Diff line change @@ -28,18 +28,18 @@ ENV SWAGGER_UI_DOWNLOAD_SHA256=3d7ef5ddc59e10f132fe99771498f0f1ba7a2cbfb9585f986
28
28
# If you change the docker version here, it has implications on invoker runc support.
29
29
# Docker server version and the invoker docker version must be the same to enable runc usage.
30
30
# If this cannot be guaranteed, set `invoker_use_runc: false` in the ansible env.
31
- ENV DOCKER_VERSION=18.06.3-ce
31
+ ENV DOCKER_VERSION=23.0.6
32
32
33
33
RUN apt-get -y install openssl
34
34
35
35
# Uncomment to fetch latest version of docker instead: RUN wget -qO- https://get.docker.com | sh
36
36
# Install docker client
37
37
RUN curl -sSL -o docker-${DOCKER_VERSION}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
38
38
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker && \
39
- tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker- runc && \
39
+ tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/runc && \
40
40
rm -f docker-${DOCKER_VERSION}.tgz && \
41
41
chmod +x /usr/bin/docker && \
42
- chmod +x /usr/bin/docker- runc
42
+ chmod +x /usr/bin/runc
43
43
##################################################################################################
44
44
45
45
# Install swagger-ui
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ FROM scala
19
19
20
20
ENV UID=1001 \
21
21
NOT_ROOT_USER=owuser \
22
- DOCKER_VERSION=18.06.3-ce
22
+ DOCKER_VERSION=23.0.6
23
23
# If you change the docker version here, it has implications on invoker runc support.
24
24
# Docker server version and the invoker docker version must be the same to enable runc usage.
25
25
# If this cannot be guaranteed, set `invoker_use_runc: false` in the ansible env.
@@ -31,10 +31,10 @@ RUN apk add --update openssl
31
31
# Install docker client
32
32
RUN curl -sSL -o docker-${DOCKER_VERSION}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
33
33
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker && \
34
- tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker- runc && \
34
+ tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/runc && \
35
35
rm -f docker-${DOCKER_VERSION}.tgz && \
36
36
chmod +x /usr/bin/docker && \
37
- chmod +x /usr/bin/docker- runc
37
+ chmod +x /usr/bin/runc
38
38
39
39
ADD build/distributions/invoker.tar ./
40
40
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ FROM scala
19
19
20
20
ENV UID=1001 \
21
21
NOT_ROOT_USER=owuser
22
- ENV DOCKER_VERSION=18.06.3-ce
22
+ ENV DOCKER_VERSION=23.0.6
23
23
# If you change the docker version here, it has implications on invoker runc support.
24
24
# Docker server version and the invoker docker version must be the same to enable runc usage.
25
25
# If this cannot be guaranteed, set `invoker_use_runc: false` in the ansible env.
@@ -31,10 +31,10 @@ RUN apt-get -y install openssl
31
31
# Install docker client
32
32
RUN curl -sSL -o docker-${DOCKER_VERSION}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz && \
33
33
tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker && \
34
- tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/docker- runc && \
34
+ tar --strip-components 1 -xvzf docker-${DOCKER_VERSION}.tgz -C /usr/bin docker/runc && \
35
35
rm -f docker-${DOCKER_VERSION}.tgz && \
36
36
chmod +x /usr/bin/docker && \
37
- chmod +x /usr/bin/docker- runc
37
+ chmod +x /usr/bin/runc
38
38
39
39
ADD build/distributions/invoker.tar ./
40
40
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ whisk {
50
50
}
51
51
52
52
docker.container-factory {
53
- # Use runc (docker-runc) for pause/resume functionality in DockerContainerFactory
53
+ # Use runc for pause/resume functionality in DockerContainerFactory
54
54
use-runc: true
55
55
}
56
56
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ object DockerContainer {
55
55
* @param network network to launch the container in
56
56
* @param dnsServers list of dns servers to use in the container
57
57
* @param name optional name for the container
58
- * @param useRunc use docker- runc to pause/unpause container?
58
+ * @param useRunc use runc to pause/unpause container?
59
59
* @return a Future which either completes with a DockerContainer or one of two specific failures
60
60
*/
61
61
def create (transid : TransactionId ,
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class RuncClient(timeouts: RuncClientTimeouts = loadConfigOrThrow[RuncClientTime
56
56
57
57
// Determines how to run docker. Failure to find a Docker binary implies
58
58
// a failure to initialize this instance of DockerClient.
59
- protected val runcCmd : Seq [String ] = Seq (" /usr/bin/docker- runc" )
59
+ protected val runcCmd : Seq [String ] = Seq (" /usr/bin/runc" )
60
60
61
61
def pause (id : ContainerId )(implicit transid : TransactionId ): Future [Unit ] =
62
62
runCmd(Seq (" pause" , id.asString), timeouts.pause).map(_ => ())
You can’t perform that action at this time.
0 commit comments