search

Home  >  Q&A  >  body text

docker run -p报错,什么情况?

为何报错了?
docker run -it -p 8080:8080 --name myserver ubuntu /bin/bash
FATA[0000] Error response from daemon: Cannot start container dcb6860f4ee81ac66d9b7e18632be4083dd59390343c0f6f9a71f3296720873e: (exit status 1)

阿神阿神2773 days ago689

reply all(3)I'll reply

  • PHPz

    PHPz2017-04-26 09:03:06

    Check the daemon process to see if there is any problem

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-04-26 09:03:06

    docker ps to see if there is this process and see if there is also a container named myserver

    reply
    0
  • ringa_lee

    ringa_lee2017-04-26 09:03:06

    Use systemmd as the initialized system:

    sudo systemctl start docker

    Use init

    sudo service docker start

    reply
    0
  • Cancelreply