Skip to content
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

execute a docker experiment,return Error: No such container #12

Closed
ray110 opened this issue Mar 29, 2019 · 2 comments
Closed

execute a docker experiment,return Error: No such container #12

ray110 opened this issue Mar 29, 2019 · 2 comments
Labels
chaosblade-exec-docker chaosblade-exec-docker project type/question Further information is requested

Comments

@ray110
Copy link

ray110 commented Mar 29, 2019

Issue Description

execute a docker experiment

command: blade create docker cpu fullload --container containerID
return:

{"code":604,"success":false,"error":"Error:` No such container: 8e8c31d91a2c-cpu\n exit status 1"}

Do i need enter the container and run the command ?

@xcaspar
Copy link
Member

xcaspar commented Mar 29, 2019

blade create docker cpu fullload --container containerID

No need. The execution process of the cpu full load for docker as flows:

Pull docker image registry.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-agent:0.0.1 and execute run command like: docker run -d -t --pid container:<CONTAINERID> --ipc container:<CONTAINERID> --name <CONTAINERID>-cpu sh -c /usr/local/chaosblade/bin/chaos_burncpu --start

For your problem, please check if you can pull the registry.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-agent:0.0.1 image or not.

@ray110
Copy link
Author

ray110 commented Mar 29, 2019

blade create docker cpu fullload --container containerID

No need. The execution process of the cpu full load for docker as flows:

Pull docker image registry.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-agent:0.0.1 and execute run command like: docker run -d -t --pid container:<CONTAINERID> --ipc container:<CONTAINERID> --name <CONTAINERID>-cpu sh -c /usr/local/chaosblade/bin/chaos_burncpu --start

For your problem, please check if you can pull the registry.cn-hangzhou.aliyuncs.com/chaosblade/chaosblade-agent:0.0.1 image or not.

thx

@ray110 ray110 closed this as completed Mar 29, 2019
@xcaspar xcaspar added chaosblade-exec-docker chaosblade-exec-docker project type/question Further information is requested labels Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chaosblade-exec-docker chaosblade-exec-docker project type/question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants