带有mysql的raspbian spin docker容器

jjjwad0x  于 2021-06-15  发布在  Mysql
关注(0)|答案(1)|浏览(377)

我想在我的树莓皮3上旋转一个容器。这个容器有一个mysql服务器,当我试图启动它时,它给我带来了一些麻烦。 $ docker-compose up > /dev/null & ```
$ Building mysql
ERROR: Service 'mysql' failed to build: no matching manifest for unknown in
the manifest list entries

yml文件如下所示

version: '2'
services:
app:
build:
context: .
dockerfile: Dockerfile.myapiapp
links:
- mail
- mysql
- memcached

...

mysql:
  build:
    context: docker/mysql/
    #dockerfile: MySQL-5.7.Dockerfile
    dockerfile: MariaDB-Latest.DockerFile
  ports:
    - 13306:3306
  volumes_from:
    - storage
  env_file:
    - etc/environment.yml
    - etc/environment.myapiapp.yml

``` docker/mysql/MySQL-5.7.Dockerfile 看起来像这样

FROM mysql:5.7
ADD conf/mysql-docker.cnf /etc/mysql/conf.d/z99-docker.cnf
``` `docker/mysql/MariaDB-Latest.DockerFile` 看起来像这样

FROM mariadb:latest
ADD conf/mysql-docker.cnf /etc/mysql/conf.d/z99-docker.cnf
`$ docker -v`
Docker version 18.09.0, build 4d60db4

2nbm6dog

2nbm6dog1#

mariadb和mysql没有arm的docker映像。只有mariadb有arm64,这不是raspberry pi使用的cpu。

相关问题