Skip to content

Commit

Permalink
Enable Docker v2 plugin in containerized Snap (#46)
Browse files Browse the repository at this point in the history
JIRA: G1-1685
  • Loading branch information
poleszcz authored Aug 24, 2022
1 parent 88b6308 commit f02bcbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/swisnap-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ run_plugins_with_default_configs() {
fi

if [ "${SWISNAP_ENABLE_DOCKER}" = "true" ]; then
docker_plugin_config="${PLUGINS_DIR}/docker.yaml"
docker_plugin_config="${TASK_AUTOLOAD_DIR}/task-docker.yaml"
if check_if_plugin_supported Docker "${docker_plugin_config}.example"; then
mv "${docker_plugin_config}.example" "${docker_plugin_config}"
if [[ -n "${HOST_PROC}" ]]; then
sed -i 's,procfs: "/proc",procfs: "'"${HOST_PROC}"'",g' "${docker_plugin_config}"
sed -i 's,#procfs: "/proc",procfs: "'"${HOST_PROC}"'",g' "${docker_plugin_config}"
fi
fi
fi
Expand Down

0 comments on commit f02bcbe

Please sign in to comment.