# Metricbeat error: failed to get docker stats: Cannot connect to the Docker daemon at unix:///run/podman/io.podman

**URL:** <https://discuss.elastic.co/t/metricbeat-error-failed-to-get-docker-stats-cannot-connect-to-the-docker-daemon-at-unix-run-podman-io-podman/329995>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [April 14, 2023, 10:11am UTC](https://discuss.elastic.co/t/metricbeat-error-failed-to-get-docker-stats-cannot-connect-to-the-docker-daemon-at-unix-run-podman-io-podman/329995 "2023-04-14T10:11:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Usama\_Tariq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usama_tariq/32/119820_2.png) [@Usama\_Tariq](https://discuss.elastic.co/u/Usama_Tariq)\
**Post date:** [April 14, 2023, 10:11am UTC](https://discuss.elastic.co/t/metricbeat-error-failed-to-get-docker-stats-cannot-connect-to-the-docker-daemon-at-unix-run-podman-io-podman/329995/1 "2023-04-14T10:11:04Z")

</div>

Hi all. I am facing an issue when trying to get docker metrics via podman. I am getting the following error:  
"failed to get docker stats: Cannot connect to the Docker daemon at unix:///run/podman/io.podman. Is the docker daemon running?"  
My metricbeat config is as follows:

```auto
# Ansible managed

################### metricbeat Configuration #########################

############################# metricbeat ######################################
metricbeat:
  processors:
  - add_host_metadata: null
  - add_cloud_metadata: null
  - add_docker_metadata: null
metricbeat.modules:
- enabled: true
  hosts:
  - localhost:15672
  metricsets:
  - node
  - queue
  - connection
  - exchange
  module: rabbitmq
  password: mypwd
  period: 30s
  username: rmquser
- enabled: true
  hosts:
  - localhost:8810
  metricsets:
  - dbstats
  - status
  - collstats
  - metrics
  module: mongodb
  password: mypwd
  period: 30s
  username: root
- enabled: 'true'
  hosts:
  - unix:///run/podman/io.podman
# match_source_index: 5
  metricsets:
  - container
  - cpu
  - diskio
  - event
  - healthcheck
  - info
  - memory
  - network
  module: docker
  period: 30s
- core.metrics:
  - percentages
  cpu.metrics:
  - percentages
  - normalized_percentages
  enabled: true
  metricsets:
  - cpu
  - load
  - memory
  - network
  - process
  - process_summary
  - uptime
  - socket_summary
  - core
  - diskio
  - filesystem
  - fsstat
  - service
  module: system
  period: 30s
  processes:
  - .*
setup.ilm.check_exists: false

###############################################################################
############################# Libbeat Config ##################################
# Base config file used by all other beats for using libbeat features

############################# Output ##########################################

output:
 
  elasticsearch:
 
    enabled: true
 
    hosts:

        - https://myhost:443 
    password: mypass
 
    protocol: https
 
    username: beats_writer

```

Host OS Distribution: rhel  
Host OS version: 7.9  
Podman version: 1.6.4

Any help in this regard would be highly appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Kay\_Khan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kay_khan/32/45028_2.png) [@Kay\_Khan](https://discuss.elastic.co/u/Kay_Khan)\
**Post date:** [April 17, 2023, 11:57am UTC](https://discuss.elastic.co/t/metricbeat-error-failed-to-get-docker-stats-cannot-connect-to-the-docker-daemon-at-unix-run-podman-io-podman/329995/2 "2023-04-17T11:57:02Z")

</div>

Did you find a solution for this?

---

<div class="post-metadata">

**Author:** ![Usama\_Tariq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/usama_tariq/32/119820_2.png) [@Usama\_Tariq](https://discuss.elastic.co/u/Usama_Tariq)\
**Post date:** [April 18, 2023, 6:34am UTC](https://discuss.elastic.co/t/metricbeat-error-failed-to-get-docker-stats-cannot-connect-to-the-docker-daemon-at-unix-run-podman-io-podman/329995/3 "2023-04-18T06:34:43Z")

</div>

@Kay_Khan not yet. Are you facing similar issue?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 16, 2023, 8:34am UTC](https://discuss.elastic.co/t/metricbeat-error-failed-to-get-docker-stats-cannot-connect-to-the-docker-daemon-at-unix-run-podman-io-podman/329995/4 "2023-05-16T08:34:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
