Run a Docker Image as a Container -
i built docker image dockerfile. see image built successfully, do it? shouldn't able run container?
new docker misunderstanding on end, great.
the specific way run depends on whether gave image tag/name or not.
$ docker images root@dockertest:~# docker images repository tag id created size ubuntu 12.04 8dbd9e392a96 4 months ago 131.5 mb (virtual 131.5 mb)
with name (let's use ubuntu):
$ docker run -i -t ubuntu:12.04 /bin/bash
without name, using id:
$ docker run -i -t 8dbd9e392a96 /bin/bash
please see https://docs.docker.com/engine/reference/run/ more information.
Comments
Post a Comment