Closed dierbei closed 1 year ago
I think adding a .dockerignore file might build better.
Please use buildx
to build the docker image:
docker buildx build -t wasm:1636 .
Please use
buildx
to build the docker image:docker buildx build -t wasm:1636 .
Thanks, I solved the problem of building
Another problem:
According to the docker-compose file, you will need to specify the platform to run it. Ref: https://github.com/second-state/microservice-rust-mysql/blob/main/docker-compose.yml#L10
According to the docker-compose file, you will need to specify the platform to run it. Ref: https://github.com/second-state/microservice-rust-mysql/blob/main/docker-compose.yml#L10
You are right, but I have a problem when running.
I try to specify the architecture when building.
My operating system is Ubuntu.
Have you installed the wasm-enabled runtime bundled docker, such as docker-desktop?
Also, you have to add an extra flag: export BUILDX_NO_DEFAULT_ATTESTATIONS=1
Ref: https://github.com/second-state/microservice-rust-mysql/commit/ac7bbed4db49ebdd18c044e4d3bdf6c51eebefa4
Have you installed the wasm-enabled runtime bundled docker, such as docker-desktop?
Also, you have to add an extra flag:
export BUILDX_NO_DEFAULT_ATTESTATIONS=1
Ref: ac7bbed
Am I supposed to do this right?
What's your docker version?
This is mine:
This is mine:
docker-desktop
I don't have docker-desktop installed, I only have terminal.
You will need Docker Desktop.
Or
Use the 24.0.0-beta-1 or above of dockerd. You do have to activate the containerd feature, put { "features": [ "containerd-snapshotter": true ] } in /etc/docker/daemon.json).
You can download the build from http://download.docker.com (for debian for example it’s here: https://download.docker.com/linux/debian/dists/bullseye/pool/test/amd64/docker-ce_24.0.0~beta.1-1~debian.11~bullseye_amd64.deb).
You will need Docker Desktop.
Or
Use the 24.0.0-beta-1 or above of dockerd. You do have to activate the containerd feature, put { "features": [ "containerd-snapshotter": true ] } in /etc/docker/daemon.json).
You can download the build from http://download.docker.com (for debian for example it’s here: https://download.docker.com/linux/debian/dists/bullseye/pool/test/amd64/docker-ce_24.0.0~beta.1-1~debian.11~bullseye_amd64.deb).
Thanks, I'll try it later.
I built successfully with Docker Desktop on MAXOS, thanks for your help.
I have another question, is there a web framework that supports wasm better?
I tried to build a image using Dockerfile and got this error.