Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Stopping Altibase Service Container


To stop a running container, use the docker stop command. Stopped containers are not deleted and can be rerun with the docker start command.

Code Block
docker stop [OPTIONS] CONTAINER [CONTAINER...]
Options:
         -t, --time int   Seconds to wait for stop before killing it (default 10)
Code Block
# docker stop altibase_testaltibase_test

Deleting Altibaser Service Container


To delete a container, the container must be stopped.

When retrieving the container, use the docker ps command. Add the -a option when retrieving the stopped container.

To delete a stopped container, use the docker rm command.

Code Block
docker ps [OPTIONS]OPTIONIS :
          -a, --all             Show all containers (default shows just running)
          -f, --filter filter   Filter output based on conditions provided
          --format string       Pretty-print containers using a Go template
          -n, --last int        Show n last created containers (includes all states) (default -1)
          -l, --latest          Show the latest created container (includes all states)
          --no-trunc            Don't truncate output
          -q, --quiet           Only display numeric IDs
          -s, --size            Display total file sizes
 
docker rm [OPTIONS] CONTAINER [CONTAINER...]
OPTIONIS :
          -f, --force     Force the removal of a running container (uses SIGKILL)
          -l, --link      Remove the specified link
          -v, --volumes   Remove the volumes associated with the container
Code Block
# docker psCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
19d325fa6e26        registry            "/entrypoint.sh /etc…"   3 days ago          Up 3 days           0.0.0.0:5000->5000/tcp   local-registry
 
# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                       PORTS                    NAMES
dbab08cc5be8        altitest:0.0        "/bin/bash /home/alt…"   19 hours ago        Exited (137) 2 minutes ago                            altibase_test
6074f9f6876a        305569b058db        "/bin/sh -c 'apt-get…"   19 hours ago        Exited (1) 19 hours ago                               agitated_dirac
7cd392776788        2c7e9ce62325        "/bin/sh -c 'apt-get…"   20 hours ago        Exited (1) 20 hours ago                               sleepy_shamir
2c835abffa8a        399a593362f0        "/bin/sh -c 'useradd…"   21 hours ago        Created                                               great_gould
9f1daafaaf3d        93d6a98de683        "/bin/bash 'useradd …"   2 days ago          Exited (127) 2 days ago                               strange_aryabhata
19d325fa6e26        registry            "/entrypoint.sh /etc…"   3 days ago          Up 3 days                    0.0.0.0:5000->5000/tcp   local-registry
 
# docker rm altibase_test
altibase_test
 
# docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                    PORTS                    NAMES
6074f9f6876a        305569b058db        "/bin/sh -c 'apt-get…"   19 hours ago        Exited (1) 19 hours ago                            agitated_dirac
7cd392776788        2c7e9ce62325        "/bin/sh -c 'apt-get…"   20 hours ago        Exited (1) 20 hours ago                            sleepy_shamir
2c835abffa8a        399a593362f0        "/bin/sh -c 'useradd…"   21 hours ago        Created                                            great_gould
9f1daafaaf3d        93d6a98de683        "/bin/bash 'useradd …"   2 days ago          Exited (127) 2 days ago                            strange_aryabhata
19d325fa6e26        registry            "/entrypoint.sh /etc…"   3 days ago   

Reference


Docker Documentation: https://docs.docker.com/