File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 9
9
#include " sinsp_int.h"
10
10
#include " user_event.h"
11
11
12
+ const std::string docker::DOCKER_SOCKET_FILE = " /var/run/docker.sock" ;
13
+
12
14
docker::docker (const std::string& url,
13
15
const std::string& path,
14
16
const std::string& http_version,
@@ -17,7 +19,7 @@ docker::docker(const std::string& url,
17
19
bool verbose,
18
20
event_filter_ptr_t event_filter): m_id(" docker" ),
19
21
#ifdef HAS_CAPTURE
20
- m_url (!url.empty() ? url : std::string(scap_get_host_root()) + "/var/run/docker.sock" ),
22
+ m_url (!url.empty() ? url : std::string(scap_get_host_root()) + DOCKER_SOCKET_FILE ),
21
23
m_collector(false ),
22
24
#endif // HAS_CAPTURE
23
25
m_timeout_ms (timeout_ms),
Original file line number Diff line number Diff line change 17
17
class docker
18
18
{
19
19
public:
20
+ static const std::string DOCKER_SOCKET_FILE;
21
+
20
22
typedef std::vector<std::string> uri_list_t ;
21
23
typedef std::shared_ptr<Json::Value> json_ptr_t ;
22
24
typedef std::set<std::string, ci_compare> event_filter_t ;
You can’t perform that action at this time.
0 commit comments