Skip to content
Snippets Groups Projects
Commit fbe1a0b2 authored by Nicolas M. Thiéry's avatar Nicolas M. Thiéry
Browse files

Mise a jour commentaires

parent ac63271d
No related branches found
No related tags found
No related merge requests found
......@@ -112,14 +112,14 @@ void docker_exec(string docker_id, vector<string> args) {
vector<string> docker_args = {"exec", "-i", docker_id};
for (auto arg: args)
docker_args.push_back(arg);
//docker_oldexec(docker_id, command);
exec(docker, docker_args);
}
void docker_cp(string docker_id, string source, string target) {
// See http://stackoverflow.com/questions/22907231/copying-files-from-host-to-docker-container
// Better replace with 'docker cp' of docker 1.8
exec(docker, {"exec", "-i", docker_id, "/bin/bash", "-c", "cat > "+target,},
// TODO: replace with 'docker cp' of docker 1.8 when possible
exec(docker,
{"exec", "-i", docker_id, "/bin/bash", "-c", "cat > "+target,},
source, "", "");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment