docker-compose error Docker podman Full Overview | Viewing Kibana & Elasticsearch Lab (GitHub)

Опубликовано: 31 Май 2026
на канале: NLR Crew
32
4

In this video, docker-compose does not behave as expected because the system uses Podman instead of Docker.

This can lead to errors when running containers like Kibana and Elasticsearch, including failures, unexpected behavior, or services not starting correctly.

Main issue:
Parrot OS may map docker commands to Podman, causing compatibility problems with docker-compose setups.

Core fix:
Ensure that Docker is correctly installed and used instead of Podman when working with docker-compose environments.

Core concepts covered:
Checking container status with docker ps
Identifying crashed containers
Understanding inter-container communication
Fixing Linux memory limits (vm.max_map_count)
Correcting docker-compose.yml configuration
Analyzing logs for deeper diagnostics
Performing clean restarts

Key insight:
In Docker, localhost does not refer to other containers. Each container is isolated, so services must communicate using service names defined in docker-compose.

Additionally, Elasticsearch requires sufficient system resources, especially memory, to start correctly.

This structured approach allows you to diagnose and fix the issue step by step, moving from error detection to full system recovery.

So, more clearly (Docker error case):
Check Containers
Run sudo docker ps. If Elasticsearch is marked as Exited, it's the problem.

Increase Memory Limit
Elasticsearch needs more memory. Increase the virtual memory limit with:
sudo sysctl -w vm.max_map_count=262144

Fix docker-compose.yml
In your docker-compose.yml, make sure Kibana uses elasticsearch as the hostname, not localhost.
Example:
ELASTICSEARCH_HOSTS=http://elasticsearch:9200

Check Logs
Look at the container logs with sudo docker logs container_id (container_id in angle brackets) to spot any errors.

Restart Containers with:
sudo docker-compose down && sudo docker-compose up -d

Kibana should now be Green and ready.

Quick Commands
Check containers: sudo docker ps
Increase memory: sudo sysctl -w vm.max_map_count=262144
Edit config: nano docker-compose.yml
Check logs: sudo docker logs container_id (container_id in angle brackets)
Restart: sudo docker-compose down && sudo docker-compose up -d

Educational and informational content only.

#Docker #Kibana #Elasticsearch