docker compose how to run multi images with no service

for your information, i usually new to docker and still test any feature of docker.

currently i learn docker-compose with pure OS loaded (alpine and ubuntu)

my docker compose yaml file :

version: '3.7'
    image: alpine:latest
    image: ubuntu:latest

got docker ps -a

CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES
2004175db96b        ubuntu:latest       "/bin/bash"         25 minutes ago      Exited (0) 3 seconds ago                        dockerize_ubuntu2_1
eaae1f731b71        alpine:latest       "/bin/sh"           25 minutes ago      Exited (0) 25 minutes ago                       dockerize_alpine1_1

because these images is still pure image, i can not start both the container,

with docker i usually use :

docker run -t alpine

then i can start the container.

Please help me with my problem above, i still want to run the container from pure images.

Source: StackOverflow