

To display the processes that a container is running, use the It is more convenient to manage aĬontainer by using its name than by its ID. That are currently running, for ~]# docker psĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESħ68a3d7b605a oraclelinux:6.8 /bin/bash 14 minutes ago Up 14 minutes guestħ7bacba845e2 is currently running the command Ps command to display information about the containers

Naming the container, Docker removes the container when it exitsįrom another shell window, you can use the docker Status: Downloaded newer image for /]# cat /etc/oracle-releaseīecause we specified the -rm option instead of Unable to find image 'oraclelinux:7.0' locally That you specify) as shown in the following ~]# docker run -i -t -rm oraclelinux:7.0 If an image does not already exist on your system, the DockerĮngine performs a docker pull operation toĭownload the image from the Docker Hub (or from another repository Not remove the container when it exits and we can restart it at a To use a pseudo-terminal to run the container ~] and represent the prompts shown by the host and by theĬontainer respectively. Oraclelinux:6.8 to provide the container. This example runs an interactive bash shell 4.2.1 Configuring How Docker Restarts Containers 4.2.2 Controlling Capabilities and Making Host Devices Available to Containers 4.2.3 Accessing the Host's Process ID Namespace 4.2.4 Mounting a Host's root File System in Read-Only ModeĪpplication inside a container, for ~]# docker run -i -t -name guest oraclelinux:6.8 ~]# cat /etc/oracle-release
