“--host-0.0.0.0”选项不存在

The "--host-0.0.0.0" option does not exist

正在尝试在 laravel 中设置我的第一个 Docker 容器。

完全按照教程进行操作,但在我的电脑上我得到了
The "--host-0.0.0.0" option does not exist.

Docker文件

FROM php:7.4-fpm-alpine

RUN docker-php-ext-install pdo pdo_mysql
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

WORKDIR /app
COPY . .
RUN composer install

CMD php artisan serve --host=0.0.0.0

docker-compose.yml

version: '3.8'
services:

  backend:
     build:
         context: .
         dockerfile: Dockerfile
     ports:
      - 8000:8000
     volumes:
         - .:/app
     depends_on:
       - db

  db:
    image: library/mysql:5.7.22
    environment:
      MYSQL_DATABASE: admin
      MYSQL_USER: admin
      MYSQL_PASSWORD: admin
      MYSQL_ROOT_PASSWORD: admin
    volumes:
    - ./storage/dbdata:/var/lib/mysql
    ports:
        - 33066:3306

感谢@Tolis Gerodimos

docker-compose up --build