Command and the results – Lab

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

docker create --name Aji_httpd  httpd

resut
6a0a25cd90abebf563a628a51aea574e74cfe092238ac84ea50744cc7279c9c0

docker start 6a0a25cd90ab

result
6a0a25cd90ab

docker ps -a | grep Aji

Result
6a0a25cd90ab   httpd          "httpd-foreground"       About a minute ago   Up 46 seconds                80/tcp    Aji_httpd


docker pause 6a0a25cd90ab

Result
6a0a25cd90ab   httpd          "httpd-foreground"       2 minutes ago    Up 2 minutes (Paused)           80/tcp    Aji_httpd

 docker unpause 6a0a25cd90ab

Result

6a0a25cd90ab   httpd          "httpd-foreground"       7 minutes ago    Up 6 minutes                  80/tcp    Aji_httpd

docker stop 6a0a25cd90ab

Result 
6a0a25cd90ab   httpd          "httpd-foreground"       12 minutes ago       Exited (0) 1 second ago                     Aji_httpd

docker info

Result

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.6.1-docker)
  scan: Docker Scan (Docker Inc., v0.8.0)

Server:
 Containers: 47
  Running: 17
  Paused: 2
  Stopped: 28
 Images: 7
 Server Version: 20.10.8
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: e25210fe30a0a703442421b0f60afac609f950a3
 runc version: v1.0.1-0-g4144b63
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-1045-aws
 Operating System: Ubuntu 20.04.2 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.64GiB
 Name: ip-172-31-28-155
 ID: YRM7:TUK4:FIHI:JOLB:3WS2:H2NK:KHFZ:TBET:OKUT:QLNM:ZOWY:VLFC
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false



docker exec -it 6a0a25cd90ab /bin/bash

Result

connected to the contaner
root@6a0a25cd90ab:/usr/local/apache2#