Kubernetes or Docker in Application Deployment

Hello Everyone, Can anyone know which one is better kubernetes or docker from an application deployment point of view. As my knowledge, Docker Swarm comes with Docker Compose that helps in installing the application. In order to identify multi-container, Docker Swarm has YAML (YAML Ain’t Markup Language) files But I am confused in kubernetes app deployment. I have checked some references to find out the best comparison on kubernetes vs docker but I didn’t get the answer. Can anyone know about this comparison? Please suggest some tips.