‘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
No comments:
Post a Comment