xianlubird / mydocker

<<自己动手写docker>> 源码

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

exec: \"stress\": executable file not found in $PATH"

tsonglew opened this issue · comments

code-3.2

# ./mydocker run -ti -m 100m stress --vm-bytes 200m --vm-keep -m 1

{"level":"info","msg":"command all is stress --vm-bytes 200m --vm-keep -m 1","time":"2017-08-23T20:04:08+08:00"}
{"level":"info","msg":"init come on","time":"2017-08-23T20:04:08+08:00"}
{"level":"info","msg":"Current location is /root/go/src/github.com/xianlubird/mydocker","time":"2017-08-23T20:04:08+08:00"}
{"level":"error","msg":"Exec loop path error exec: \"stress\": executable file not found in $PATH","time":"2017-08-23T20:04:08+08:00"}
exec: "stress": executable file not found in $PATH
{"level":"warning","msg":"remove cgroup fail cgroup path error stat mydocker-cgroup: no such file or directory","time":"2017-08-23T20:04:08+08:00"}
{"level":"warning","msg":"remove cgroup fail cgroup path error stat mydocker-cgroup: no such file or directory","time":"2017-08-23T20:04:08+08:00"}
# lsb_release -a; uname -r
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.5 LTS
Release:	14.04
Codename:	trusty
4.4.0-31-generic

在机器上需要先安装stress
apt-get install stress

机器上已经装过了。并且可以运行。 @BSWANG

之前合并代码有一些问题,刚才已经更新了code-3.2的tag解决,请尝试更新最新的code-3.2的tag的代码解决