11-04-2020 11:17 AM
I tried to run a simple nginx default server on IR510 but I can't start it.
Here the steps
FROM arm32v7/nginx EXPOSE 80
# Commands and test:
# docker build -t ir510/nginx_test .
# docker run --rm --name nt1 ir510/nginx_test
ioxclient docker package ir510/nginx_test .
ioxclient app install app_nginx package.tar
ioxclient app activate --payload activation.json app_nginx
ioxclient app start app_nginx
Error message:
{ "description": "", "errorcode": -1014, "message": "Error while changing app state" }
package.yaml content
descriptor-schema-version: "2.7" info: name: nginx version: 0.1 app: cpuarch: "armv7l" type: docker resources: cpu: "400" memory: "128" network: - interface-name: eth0 ports: tcp: - "8010" profile: custom startup: rootfs: rootfs.tar target: - nginx
activation.json
{ "resources": { "profile": "c1.tiny", "network": [{ "interface-name": "eth0", "network-name": "iox-nat0", "port_map": { "mode": "auto", "tcp": { "8010": "8010" } } }] } }
I don't find any information about to solve this problem.
Solved! Go to Solution.
11-23-2020 02:03 PM - edited 11-23-2020 02:09 PM
Finally solved. It was architecture issue, the original Dockerfile for this nginx is on arm64, so I changed to arm32v7 and that works. For this I built the dockerfile using docker buildx tool, Raspberry Pi can builds ARMs too.
11-23-2020 02:03 PM - edited 11-23-2020 02:09 PM
Finally solved. It was architecture issue, the original Dockerfile for this nginx is on arm64, so I changed to arm32v7 and that works. For this I built the dockerfile using docker buildx tool, Raspberry Pi can builds ARMs too.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide