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

  • Error pulling image (latest) from centos, Authentication is required
  • ERROR: repository x not found: does not exist or no pull access
  • Wrong permissions in volume in Docker container
  • “Unable to write in the cache directory” with Docker and Nginx
  • Can't connect to dockerized MongoDB instance
  • Docker - Rhel image chcon operation not permitted
  • 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?

  • Port exposed by Docker not reachable
  • NodeJS Mongodb in docker compose = ECONNREFUSED
  • Grunt required github token during docker build
  • How does docker run on osx, does it use vagrant?
  • Can I run multiple programs in a Docker container?
  • Editing files using editors in Docker with Vagrant (on Mac)
  • 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.