Docker Containers vs Sprng Boot Containers

While new age applications are moving towards the Sprint Boot to adopt rich features, there is an overlap of containerization with Sprint Boot’s containers within the application or with Docker’s container running a Application.

We would like to understand what is a better practice ? If anyone has done any analysis or study around this subject, it would be great.