You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I pulled default unit image from docker hub and tried usage wasm module with exec command:
docker exec -ti web curl -X PUT -d '{"helloworld": {"type":"wasm","module":"/www/helloworld/main.wasm"}}' --unix-socket \
/var/run/control.unit.sock http://localhost/config/applications
I had next error:
{
"error": "Invalid configuration.",
"detail": "The module to run \"wasm\" is not found among the available application modules."
}
Default image doesn't have wasm module?
my env:
os: macos
arch: arm64
docker version: Docker version 24.0.6, build ed223bc
image:
IMAGE CREATED CREATED BY SIZE COMMENT
648c40d7602f 10 days ago /bin/sh -c #(nop) CMD ["unitd" "--no-daemon… 0B
<missing> 10 days ago /bin/sh -c #(nop) EXPOSE 80 0B
<missing> 10 days ago /bin/sh -c #(nop) ENTRYPOINT ["/usr/local/b… 0B
<missing> 10 days ago /bin/sh -c #(nop) STOPSIGNAL SIGTERM 0B
<missing> 10 days ago /bin/sh -c #(nop) COPY multi:44b909b4ee0b15a… 3.62kB
<missing> 10 days ago /bin/sh -c #(nop) COPY file:8b65557c2137d1a3… 3.96kB
<missing> 10 days ago /bin/sh -c set -ex && savedAptMark="$(ap… 24.2MB
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) LABEL org.opencontainers.… 0B
<missing> 10 days ago /bin/sh -c #(nop) CMD ["bash"] 0B
<missing> 10 days ago /bin/sh -c #(nop) ADD file:99dc83e8bb8c67d91… 74.4MB
The text was updated successfully, but these errors were encountered:
The other module is based on Rust and supports the Wasm Component Model and can be used with wasm-wasi-http.
This can be pulled issuing docker pull nginx/unit-preview:wasm-wasi-http
Hey, everyone!
I pulled default
unit
image from docker hub and tried usage wasm module with exec command:I had next error:
Default image doesn't have wasm module?
my env:
The text was updated successfully, but these errors were encountered: