How to resolve `Illegal instruction` error while running docker run command?

I have build a docker image inside the vagrant machine and also from TRAVIS linux enviroment and then i have pushed this image to Docker hub and pulled into Softlayer machine.

After i pulled the image, i ran docker run command like below

  • docker: different PID for `top` and `ps`
  • How to restart multiple containers in a docker swarm
  • `npm start` in docker ends with: Please install a supported C++11 compiler and reinstall the module
  • Push container to bluemix registry: 405 Method Not Allowed
  • access service from host when ports and not linked
  • I can't run rails console with Docker and Passenger/nginx image
  • docker run -i -t rameshthoomu/openpeer /bash/bin then when i run

    root@23495a2ed7a8:/go/src/ /go/bin/obc-peer peer command i am getting below error message.

    Illegal instruction..

    It’s working file when i build and run the same image inside the vagrant environment. Also, if i create an image inside the softlayer machine, i could run the image and can proceed further.

    I don’t have any clue why i am getting this error message. Any thoughts?

  • Jenkins in Docker: Unable to resolve VCS host
  • Jenkinsfile docker
  • prepend command with env variable - including sub command
  • docker swarm 1.12 --name option not recognized
  • Mount linux image in docker container
  • Docker container port issue
  • One Solution collect form web for “How to resolve `Illegal instruction` error while running docker run command?”

    The command is /bin/bash/ not /bash/bin.

    Try the following instead:

    docker run -i -t rameshthoomu/openpeer /bin/bash

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.