Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
10e6e6ad
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
10e6e6ad
编写于
9月 11, 2017
作者:
A
Aaron Prindle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
added cleanup for docker containers in none driver
上级
18de99b7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
5 deletion
+7
-5
hack/jenkins/linux_integration_tests_none.sh
hack/jenkins/linux_integration_tests_none.sh
+0
-4
pkg/drivers/none/none.go
pkg/drivers/none/none.go
+7
-1
未找到文件。
hack/jenkins/linux_integration_tests_none.sh
浏览文件 @
10e6e6ad
...
...
@@ -33,9 +33,5 @@ EXTRA_BUILD_ARGS="$EXTRA_BUILD_ARGS --use-vendored-driver"
SUDO_PREFIX
=
"sudo -E "
export
KUBECONFIG
=
"/root/.kube/config"
# Clean up running docker containers on the test slave
docker stop
$(
docker ps
-aq
)
||
true
docker
rm
$(
docker ps
-aq
)
||
true
# Download files and set permissions
source
common.sh
pkg/drivers/none/none.go
浏览文件 @
10e6e6ad
...
...
@@ -31,6 +31,8 @@ import (
)
const
driverName
=
"none"
const
dockerkillcmd
=
`docker rm $(docker kill $(docker ps -a --filter="name=k8s_" --format="{{.ID}}"))`
const
dockerstopcmd
=
`docker stop $(docker ps -a --filter="name=k8s_" --format="{{.ID}}")`
// none Driver is a driver designed to run localkube w/o a VM
type
Driver
struct
{
...
...
@@ -132,7 +134,10 @@ func (d *Driver) Remove() error {
cmd
=
exec
.
Command
(
"sudo"
,
"rm"
,
"-rf"
,
"/var/lib/localkube"
)
if
err
:=
cmd
.
Start
();
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"removing localkube"
)
}
runCommand
(
dockerkillcmd
,
false
)
return
nil
}
...
...
@@ -160,7 +165,7 @@ else
sudo kill $(cat %s)
fi
`
,
constants
.
LocalkubePIDPath
)
_
,
err
:=
runCommand
(
stopcmd
,
tru
e
)
_
,
err
:=
runCommand
(
stopcmd
,
fals
e
)
if
err
!=
nil
{
return
err
}
...
...
@@ -173,6 +178,7 @@ fi
break
}
}
runCommand
(
dockerstopcmd
,
false
)
return
nil
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录