Skip to content

Commit

Permalink
Fix dnsdock
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskorobicyn committed Sep 7, 2017
1 parent d3b7051 commit 9b42106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/dnsdock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ dip::Dnsdock::Dnsdock(dip::Dip *dip)

void dip::Dnsdock::run(std::string args)
{
if (0 == args.compare(0, 2, "up")) {
if (0 == args.compare(0, 4, "\"up\"")) {
system("docker run --detach --volume /var/run/docker.sock:/var/run/docker.sock:ro --restart always --publish 53:53/udp --name=dnsdock aacebedo/dnsdock:latest-amd64");
}

if (0 == args.compare(0, 4, "down")) {
if (0 == args.compare(0, 6, "\"down\"")) {
system("docker stop dnsdock");
system("docker rm -v dnsdock");
}
Expand Down

0 comments on commit 9b42106

Please sign in to comment.