Monday 3 June 2019

docker container stop: Stop the container


‘docker container stop {containerId/containerName}’ is used to stop the running container.

Syntax
docker container stop {CONTAINER_NAME}
docker container stop {CONTAINER_ID}

$ docker container ls
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS               NAMES
c9a1bfa89e1e        jboss/wildfly       "/opt/jboss/wildfly/…"   6 minutes ago       Up 6 minutes        8080/tcp            infallible_elgamal
$ 
$ docker container stop c9a1bfa89e1e;
c9a1bfa89e1e
$ 
$ docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES



Previous                                                 Next                                                 Home

No comments:

Post a Comment