'Appsody :: Run simple node js express application gives error ( MacBook Pro - M1 -2020 )

I am trying to run node js application by using appsody. I have installed appsody using brew and made project by running appsody init nodejs-express command.

Now when I run appsody run command. I get the below error. I have pulled ubuntu image from docker hub ( docker pull ubuntu ) and agin run this command but no success.

Steps I did

brew install appsody/appsody/appsody
appsody list
mkdir my-project
cd my-project
appsody init nodejs-express
appsody run

Getting below error

no matching manifest for linux/arm64/v8 in the manifest list entries

What am I doing wrong ?

enter image description here



Solution 1:[1]

Any one who is running docker by appsody and face the above problem below command worked for me.

The gist is to concatenate your command with @Dan Lowe command.

     {
        "label": "Appsody: debug",
        "type": "shell",
        "command": "export DOCKER_DEFAULT_PLATFORM=linux/amd64;appsody debug --network my-microservice_default --docker-options '--env KAFKA_BOOTSTRAP_SERVERS=kafka:xxxx' -p xxxx:xxxx -p xxxx:xxxx -p xxxx:xxxx",
        "group": "build",
        "problemMatcher": []
    },

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1