- Docker desktop is installed
- ContainerD images for Docker desktop is enabled
- Open Docker desktop
- Navigate to docker settings
- Navigate to "Features in development"
- Select "Use containerd for pulling and storing images"
- Click apply and restart
Make sure that if you open the dockerfile, you check that it has been saved using LF (Line Feed) and not CRLF (Carriage Return Line Feed). For VSCode, this can be seen and changed through the status bar
git clone https://github.com/abhisheksharma1395/wasm-http-examples.git
cd ./wasm-http-examples
Pre-requisite: Install rust and wasmedge in your machine. You can find the instructions at https://wasmedge.org/book/en/quick_start/install.html
Compile and create wasm module with below command rustup target add wasm32-wasi cargo build --target wasm32-wasi --release
Copy the file wasm-http-examples.wasm module from /target/wasm32-wasi/release/ folder into the root directory of project.
docker buildx build --platform wasi/wasm32 -t adroitx/wasm-http-examples.
docker compose up