Docker vs. docker-compose - different containers?

Yesterday I started with a new setup on docker as described here.
When I start a container with plain docker, the image has a size of 862 MB and HA starts well.

> docker run --init -d --name="home-assistant" -v /home/pi/homeassistant:/config -v /etc/localtime:/etc/localtime:ro --net=host homeassistant/raspberrypi3-homeassistant

When I start with docker-compose, the image has a size of 2.47 GB and permanently does restarts.

  version: '3'
  services:
    homeassistant:
      container_name: home-assistant
      image: homeassistant/home-assistant
      volumes:
        - /home/pi/homeassistant:/config
        - /etc/localtime:/etc/localtime:ro
      restart: always
      network_mode: host

You have different images
first one
homeassistant/raspberrypi3-homeassistant

second one
homeassistant/home-assistant

Yes, but…
That’s what is described in the doc.
Why do they use different images for docker or docker-compose? What’s the difference?

The docker compose is an example and you would change the image to suit you architecture

Yes, did in the meanwhile and it works :grinning:
Thanks!
Here is my changed config-file for my Pi:

  version: '3'
  services:
    homeassistant:
      container_name: home-assistant
      image: homeassistant/raspberrypi3-homeassistant
      volumes:
        - /home/pi/homeassistant:/config
        - /etc/localtime:/etc/localtime:ro
      restart: unless-stopped
      network_mode: host