Suresh R-Docker – Lab – Assignment – Excercise
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Step 1 – Register a site to POST Assigment and Share with Trainer and For Self Notes – Completed ( User : SureshRamisetti)
Step 2 – Pre Test using LMS ( Completed)
Here is the Results which I have shared to Shiva : shiva@palmeto.co.in
https://www.devopsschool.com/lms/mod/quiz/review.php?attempt=3056&cmid=250
Step 3 – Install Docker Engine in Centos#1 Vm.
[root@localhost ~]# history
1 ifconfig
2 history
3 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 sudo yum install docker-ce
9 docker -v
10 sudo systemctl enable docker
11 sudo systemctl start docker
12 docker info
13 dcoker info
14 docker info
15 sudo docker run hello-world
16 docker ps -a
17 history
[root@localhost ~]# sudo docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e3cb8e2fbf42 hello-world "/hello" 13 seconds ago Exited (0) 11 seconds ago crazy_wu
75cafc0d6fee ubuntu "bash" About an hour ago Exited (0) 7 minutes ago dreamy_northcutt
a3c9542f3076 ubuntu "bash" About an hour ago Exited (0) 7 minutes ago intelligent_goodall
0584214f703b ubuntu "bash" 15 hours ago Exited (0) 7 minutes ago compassionate_varahamihira
d83c0d7cfc94 httpd "httpd-foreground" 15 hours ago Exited (0) 7 minutes ago determined_goodall
d8cca0a8d62c ubuntu "bash" 15 hours ago Exited (0) 15 hours ago charming_liskov
26 docker update 75cafc0d6fee d83c0d7cfc94
27 yum install git -y
28 git --version
29 yum install gi
30 docker info
31 docker -v
32 which dcoker
33 which docker
34 which dockerd
35 ps -eaf | grep dockerd
36 which containerd
37 docker -eaf | grep containerd
38 ps -eaf | grep containerd
39 history
40 docker ps -a
41 docker pull ubuntu
42 docker ps -a
43 docker rm a3c9542f3076
44 docker ps -a
45 docker rm d8cca0a8d62c
46 docker rm d0584214f703b
47 docker ps -a
48 docker start 0584214f703b
49 docker ps -a
50 docker rm 0584214f703b
51* docker
52 docker rm 0584214f703b
53 docker ps -a
54 docker restart e3cb8e2fbf42
55 docker ps -a
56 docker stop e3cb8e2fbf42
57 docker rm e3cb8e2fbf42
58 docker ps -a
59 docker start d4a3a68b47a9
60 docker ps -a
61 history
62 docker pause d4a3a68b47a9
63 docker start d4a3a68b47a9
64 history
docker exec -it <container name> /bin/bash
Step 4 – Assignment#1
- Create a Ubuntu container
- Install Update, git & apache2
- run a git command in container from outside
[root@localhost ~]# history
1 ifconfig
2 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3 docker ps -a
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 docker ps -a
9 docker start 75cafc0d6fee
10 docker ps -a
11 docker kill 82da9c001d75
12 docker start 82da9c001d75
13 docker kill 82da9c001d75
14 docker rm 82da9c001d75
15 docker ps -a
16 docker start 79e0ca51ae30
17 docker rm 79e0ca51ae30
18 docker ps -a
19 docker pull https
20 docker pull httpd
21 docker ps -a
22 docker run -d httpd
23 docker ps -a
24 docker exec -it 75cafc0d6fee /bin/bash
25 docker ps -a
26 docker run -d -p 80:80 httpd
27 docker ps -a
28 docker attach 75cafc0d6fee
29 ls
30 history
Step 5 – Assignment#2
- Create a httpd container exposed at 8080 port
- Access(curl) container from node
22 docker run -d httpd
23 docker ps -a
24 docker exec -it 75cafc0d6fee /bin/bash
25 docker ps -a
26 docker run -d -p 80:80 httpd
27 docker ps -a
28 docker attach 75cafc0d6fee
29 ls
30 history
31 docker ps -a
32 docker run -d -p 80:80 httpd
33 docker run -d -p 81:80 httpddocker run -d -p 81:80 httpd
34 docker run -d -p 82:80 httpd
35 docker run -d -p 81:80
36 docker run -d -p 81:80 https
37 docker run -d -p 81:80 httpd
38 docker ps -a
39 history
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7bf8088b0a5f httpd "httpd-foreground" 4 minutes ago Up 4 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 5 minutes ago Up 5 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 6 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 13 minutes ago Up 13 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 16 minutes ago Up 16 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 37 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 18 minutes dreamy_northcutt
[root@localhost ~]#
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.701GiB
Name: localhost.localdomain
ID: 47IO:O3AU:KNR2:N2VU:INJB:2TFP:XEWV:4TF3:LX7F:IW5N:IA4P:6XME
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
[root@localhost ~]# docker -v
Docker version 20.10.7, build f0df350
[root@localhost ~]# which dcoker
/usr/bin/which: no dcoker in (/sbin:/bin:/usr/sbin:/usr/bin)
[root@localhost ~]# which docker
/bin/docker
[root@localhost ~]# which dockerd
/bin/dockerd
[root@localhost ~]# ps -eaf | grep dockerd
root 309 31453 0 01:13 pts/0 00:00:00 grep --color=auto dockerd
root 31757 1 0 00:46 ? 00:00:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
[root@localhost ~]# which containerd
/bin/containerd
[root@localhost ~]# docker -eaf | grep containerd
unknown shorthand flag: 'e' in -eaf
See 'docker --help'.
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
app* Docker App (Docker Inc., v0.9.1-beta3)
builder Manage builds
buildx* Build with BuildKit (Docker Inc., v0.5.1-docker)
config Manage Docker configs
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
scan* Docker Scan (Docker Inc., v0.8.0)
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
[root@localhost ~]# ps -eaf | grep containerd
root 362 31453 0 01:16 pts/0 00:00:00 grep --color=auto containerd
root 31749 1 0 00:46 ? 00:00:01 /usr/bin/containerd
root 31757 1 0 00:46 ? 00:00:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root 32277 1 0 00:57 ? 00:00:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id 75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0 -address /run/containerd/containerd.sock
root 32344 1 0 00:57 ? 00:00:00 /usr/bin/containerd-shim-runc-v2 -namespace moby -id d83c0d7cfc94716a492d2d626448dde013f1638dab0edf12d5290749467f9ae0 -address /run/containerd/containerd.sock
[root@localhost ~]# history
1 ifconfig
2 history
3 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 sudo yum install docker-ce
9 docker -v
10 sudo systemctl enable docker
11 sudo systemctl start docker
12 docker info
13*
14 docker info
15 sudo docker run hello-world
16 docker ps -a
17 history
18 sudo docker run hello-world
19 docker ps
20 docker ps -a
21 docker start 75cafc0d6fee
22 docker start d83c0d7cfc94
23 docker ps -a
24 docker --help
25 docker update 75cafc0d6fee
26 docker update 75cafc0d6fee d83c0d7cfc94
27 yum install git -y
28 git --version
29 yum install gi
30 docker info
31 docker -v
32 which dcoker
33 which docker
34 which dockerd
35 ps -eaf | grep dockerd
36 which containerd
37 docker -eaf | grep containerd
38 ps -eaf | grep containerd
39 history
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 29 minutes ago Exited (0) 28 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 31 minutes ago Exited (0) 31 minutes ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 22 minutes dreamy_northcutt
a3c9542f3076 ubuntu "bash" 2 hours ago Exited (0) 38 minutes ago intelligent_goodall
0584214f703b ubuntu "bash" 16 hours ago Exited (0) 38 minutes ago compassionate_varahamihira
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 22 minutes 80/tcp determined_goodall
d8cca0a8d62c ubuntu "bash" 16 hours ago Exited (0) 16 hours ago charming_liskov
[root@localhost ~]# docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
Digest: sha256:b3e2e47d016c08b3396b5ebe06ab0b711c34e7f37b98c9d37abe794b71cea0a2
Status: Image is up to date for ubuntu:latest
docker.io/library/ubuntu:latest
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 29 minutes ago Exited (0) 29 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 31 minutes ago Exited (0) 31 minutes ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 23 minutes dreamy_northcutt
a3c9542f3076 ubuntu "bash" 2 hours ago Exited (0) 39 minutes ago intelligent_goodall
0584214f703b ubuntu "bash" 16 hours ago Exited (0) 39 minutes ago compassionate_varahamihira
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 22 minutes 80/tcp determined_goodall
d8cca0a8d62c ubuntu "bash" 16 hours ago Exited (0) 16 hours ago charming_liskov
[root@localhost ~]# docker rm a3c9542f3076
a3c9542f3076
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 30 minutes ago Exited (0) 30 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 32 minutes ago Exited (0) 32 minutes ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 23 minutes dreamy_northcutt
0584214f703b ubuntu "bash" 16 hours ago Exited (0) 39 minutes ago compassionate_varahamihira
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 23 minutes 80/tcp determined_goodall
d8cca0a8d62c ubuntu "bash" 16 hours ago Exited (0) 16 hours ago charming_liskov
[root@localhost ~]# docker rm d8cca0a8d62c
d8cca0a8d62c
[root@localhost ~]# docker rm d0584214f703b
Error: No such container: d0584214f703b
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 30 minutes ago Exited (0) 30 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 32 minutes ago Exited (0) 32 minutes ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 24 minutes dreamy_northcutt
0584214f703b ubuntu "bash" 16 hours ago Exited (0) 40 minutes ago compassionate_varahamihira
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 24 minutes 80/tcp determined_goodall
[root@localhost ~]# docker start 0584214f703b
0584214f703b
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 30 minutes ago Exited (0) 30 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 33 minutes ago Exited (0) 33 minutes ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 24 minutes dreamy_northcutt
0584214f703b ubuntu "bash" 16 hours ago Up 3 seconds compassionate_varahamihira
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 24 minutes 80/tcp determined_goodall
[root@localhost ~]# docker rm 0584214f703b
Error response from daemon: You cannot remove a running container 0584214f703b7915a6af8702068d341faba36d6356d535c33c64c010b07795e5. Stop the container before attempting removal or force remove
[root@localhost ~]# docker stop 0584214f703b
0584214f703b
[root@localhost ~]# docker rm 0584214f703b
\0584214f703b
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 31 minutes ago Exited (0) 31 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 33 minutes ago Exited (0) 33 minutes ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 25 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 24 minutes 80/tcp determined_goodall
[root@localhost ~]# docker restart e3cb8e2fbf42
e3cb8e2fbf42
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 31 minutes ago Exited (0) 31 minutes ago hungry_satoshi
e3cb8e2fbf42 hello-world "/hello" 34 minutes ago Exited (0) 2 seconds ago crazy_wu
75cafc0d6fee ubuntu "bash" 2 hours ago Up 25 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 25 minutes 80/tcp determined_goodall
[root@localhost ~]# docker stop e3cb8e2fbf42
e3cb8e2fbf42
[root@localhost ~]# docker rm e3cb8e2fbf42
e3cb8e2fbf42
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 32 minutes ago Exited (0) 32 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 25 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 25 minutes 80/tcp determined_goodall
[root@localhost ~]# docker start d4a3a68b47a9
d4a3a68b47a9
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 32 minutes ago Exited (0) 1 second ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 25 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 25 minutes 80/tcp determined_goodall
[root@localhost ~]# history
1 ifconfig
2 history
3 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 sudo yum install docker-ce
9 docker -v
10 sudo systemctl enable docker
11 sudo systemctl start docker
12 docker info
13*
14 docker info
15 sudo docker run hello-world
16 docker ps -a
17 history
18 sudo docker run hello-world
19 docker ps
20 docker ps -a
21 docker start 75cafc0d6fee
22 docker start d83c0d7cfc94
23 docker ps -a
24 docker --help
25 docker update 75cafc0d6fee
26 docker update 75cafc0d6fee d83c0d7cfc94
27 yum install git -y
28 git --version
29 yum install gi
30 docker info
31 docker -v
32 which dcoker
33 which docker
34 which dockerd
35 ps -eaf | grep dockerd
36 which containerd
37 docker -eaf | grep containerd
38 ps -eaf | grep containerd
39 history
40 docker ps -a
41 docker pull ubuntu
42 docker ps -a
43 docker rm a3c9542f3076
44 docker ps -a
45 docker rm d8cca0a8d62c
46 docker rm d0584214f703b
47 docker ps -a
48 docker start 0584214f703b
49 docker ps -a
50 docker rm 0584214f703b
51* docker
52 docker rm 0584214f703b
53 docker ps -a
54 docker restart e3cb8e2fbf42
55 docker ps -a
56 docker stop e3cb8e2fbf42
57 docker rm e3cb8e2fbf42
58 docker ps -a
59 docker start d4a3a68b47a9
60 docker ps -a
61 history
[root@localhost ~]# docker pause d4a3a68b47a9
Error response from daemon: Container d4a3a68b47a90d5adfd9e8763289ae03744596a642b932087c9457bc5044d5d4 is not running
[root@localhost ~]# docker start d4a3a68b47a9
d4a3a68b47a9
[root@localhost ~]# history
1 ifconfig
2 history
3 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 sudo yum install docker-ce
9 docker -v
10 sudo systemctl enable docker
11 sudo systemctl start docker
12 docker info
13*
14 docker info
15 sudo docker run hello-world
16 docker ps -a
17 history
18 sudo docker run hello-world
19 docker ps
20 docker ps -a
21 docker start 75cafc0d6fee
22 docker start d83c0d7cfc94
23 docker ps -a
24 docker --help
25 docker update 75cafc0d6fee
26 docker update 75cafc0d6fee d83c0d7cfc94
27 yum install git -y
28 git --version
29 yum install gi
30 docker info
31 docker -v
32 which dcoker
33 which docker
34 which dockerd
35 ps -eaf | grep dockerd
36 which containerd
37 docker -eaf | grep containerd
38 ps -eaf | grep containerd
39 history
40 docker ps -a
41 docker pull ubuntu
42 docker ps -a
43 docker rm a3c9542f3076
44 docker ps -a
45 docker rm d8cca0a8d62c
46 docker rm d0584214f703b
47 docker ps -a
48 docker start 0584214f703b
49 docker ps -a
50 docker rm 0584214f703b
51* docker
52 docker rm 0584214f703b
53 docker ps -a
54 docker restart e3cb8e2fbf42
55 docker ps -a
56 docker stop e3cb8e2fbf42
57 docker rm e3cb8e2fbf42
58 docker ps -a
59 docker start d4a3a68b47a9
60 docker ps -a
61 history
62 docker pause d4a3a68b47a9
63 docker start d4a3a68b47a9
64 history
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 33 minutes ago Exited (0) 7 seconds ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 26 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 26 minutes 80/tcp determined_goodall
[root@localhost ~]# docker pull https
Using default tag: latest
Error response from daemon: pull access denied for https, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 34 minutes ago Exited (0) 2 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 28 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 28 minutes 80/tcp determined_goodall
[root@localhost ~]# docker exec -it 75cafc0d6fee /bin/bash
root@75cafc0d6fee:/# docker pull ubuntu
bash: docker: command not found
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 37 minutes ago Exited (0) 4 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 30 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Up 30 minutes 80/tcp determined_goodall
[root@localhost ~]# docker kill d83c0d7cfc94
d83c0d7cfc94
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 37 minutes ago Exited (0) 4 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 31 minutes dreamy_northcutt
d83c0d7cfc94 httpd "httpd-foreground" 16 hours ago Exited (137) 2 seconds ago determined_goodall
[root@localhost ~]# docker rm d83c0d7cfc94
d83c0d7cfc94
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 37 minutes ago Exited (0) 4 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 31 minutes dreamy_northcutt
[root@localhost ~]# docker kill d4a3a68b47a9
Error response from daemon: Cannot kill container: d4a3a68b47a9: Container d4a3a68b47a90d5adfd9e8763289ae03744596a642b932087c9457bc5044d5d4 is not running
[root@localhost ~]# docker start d4a3a68b47a9
d4a3a68b47a9
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 38 minutes ago Exited (0) 2 seconds ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 31 minutes dreamy_northcutt
[root@localhost ~]# docker pull https
Using default tag: latest
Error response from daemon: pull access denied for https, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
[root@localhost ~]# docker pull httpd
Using default tag: latest
latest: Pulling from library/httpd
Digest: sha256:1fd07d599a519b594b756d2e4e43a72edf7e30542ce646f5eb3328cf3b12341a
Status: Image is up to date for httpd:latest
docker.io/library/httpd:latest
[root@localhost ~]# history
1 ifconfig
2 history
3 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 sudo yum install docker-ce
9 docker -v
10 sudo systemctl enable docker
11 sudo systemctl start docker
12 docker info
13*
14 docker info
15 sudo docker run hello-world
16 docker ps -a
17 history
18 sudo docker run hello-world
19 docker ps
20 docker ps -a
21 docker start 75cafc0d6fee
22 docker start d83c0d7cfc94
23 docker ps -a
24 docker --help
25 docker update 75cafc0d6fee
26 docker update 75cafc0d6fee d83c0d7cfc94
27 yum install git -y
28 git --version
29 yum install gi
30 docker info
31 docker -v
32 which dcoker
33 which docker
34 which dockerd
35 ps -eaf | grep dockerd
36 which containerd
37 docker -eaf | grep containerd
38 ps -eaf | grep containerd
39 history
40 docker ps -a
41 docker pull ubuntu
42 docker ps -a
43 docker rm a3c9542f3076
44 docker ps -a
45 docker rm d8cca0a8d62c
46 docker rm d0584214f703b
47 docker ps -a
48 docker start 0584214f703b
49 docker ps -a
50 docker rm 0584214f703b
51* docker
52 docker rm 0584214f703b
53 docker ps -a
54 docker restart e3cb8e2fbf42
55 docker ps -a
56 docker stop e3cb8e2fbf42
57 docker rm e3cb8e2fbf42
58 docker ps -a
59 docker start d4a3a68b47a9
60 docker ps -a
61 history
62 docker pause d4a3a68b47a9
63 docker start d4a3a68b47a9
64 history
65 docker ps -a
66 docker pull https
67 docker ps -a
68 docker exec -it 75cafc0d6fee /bin/bash
69 docker ps -a
70 docker kill d83c0d7cfc94
71 docker ps -a
72 docker rm d83c0d7cfc94
73 docker ps -a
74 docker kill d4a3a68b47a9
75 docker start d4a3a68b47a9
76 docker ps -a
77 docker pull https
78 docker pull httpd
79 history
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest c29284518f49 7 days ago 72.8MB
httpd latest bd29370f84ea 12 days ago 138MB
hello-world latest d1165f221234 4 months ago 13.3kB
[root@localhost ~]# docker run -d ubuntu
8b4b7eae0d663d0b9b88ef53a76c56e563b45968e7ef10961ed037f4a3b939f9
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8b4b7eae0d66 ubuntu "bash" 7 seconds ago Exited (0) 6 seconds ago brave_shirley
d4a3a68b47a9 hello-world "/hello" 43 minutes ago Exited (0) 5 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 37 minutes dreamy_northcutt
[root@localhost ~]# docker start 8b4b7eae0d66
8b4b7eae0d66
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8b4b7eae0d66 ubuntu "bash" About a minute ago Exited (0) 1 second ago brave_shirley
d4a3a68b47a9 hello-world "/hello" 44 minutes ago Exited (0) 6 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 38 minutes dreamy_northcutt
[root@localhost ~]# docker rm 8b4b7eae0d66
8b4b7eae0d66
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 45 minutes ago Exited (0) 7 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 38 minutes dreamy_northcutt
[root@localhost ~]# docker run -d ubuntu
79e0ca51ae3062ee53f9cdcdcaecd8a5b72efec47472f22954e23a252a69ef5e
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" 4 seconds ago Exited (0) 3 seconds ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 45 minutes ago Exited (0) 7 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 39 minutes dreamy_northcutt
[root@localhost ~]# docker kill 79e0ca51ae30
Error response from daemon: Cannot kill container: 79e0ca51ae30: Container 79e0ca51ae3062ee53f9cdcdcaecd8a5b72efec47472f22954e23a252a69ef5e is not running
[root@localhost ~]# docker start 79e0ca51ae30
79e0ca51ae30
[root@localhost ~]# docker kill 79e0ca51ae30
Error response from daemon: Cannot kill container: 79e0ca51ae30: Container 79e0ca51ae3062ee53f9cdcdcaecd8a5b72efec47472f22954e23a252a69ef5e is not running
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" 51 seconds ago Exited (0) 15 seconds ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 46 minutes ago Exited (0) 8 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 39 minutes dreamy_northcutt
[root@localhost ~]# docker kill 79e0ca51ae30
Error response from daemon: Cannot kill container: 79e0ca51ae30: Container 79e0ca51ae3062ee53f9cdcdcaecd8a5b72efec47472f22954e23a252a69ef5e is not running
[root@localhost ~]# docker start 79e0ca51ae30
79e0ca51ae30
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" About a minute ago Exited (0) 4 seconds ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 46 minutes ago Exited (0) 8 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 40 minutes dreamy_northcutt
[root@localhost ~]# history
1 ifconfig
2 history
3 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 sudo yum install docker-ce
9 docker -v
10 sudo systemctl enable docker
11 sudo systemctl start docker
12 docker info
13*
14 docker info
15 sudo docker run hello-world
16 docker ps -a
17 history
18 sudo docker run hello-world
19 docker ps
20 docker ps -a
21 docker start 75cafc0d6fee
22 docker start d83c0d7cfc94
23 docker ps -a
24 docker --help
25 docker update 75cafc0d6fee
26 docker update 75cafc0d6fee d83c0d7cfc94
27 yum install git -y
28 git --version
29 yum install gi
30 docker info
31 docker -v
32 which dcoker
33 which docker
34 which dockerd
35 ps -eaf | grep dockerd
36 which containerd
37 docker -eaf | grep containerd
38 ps -eaf | grep containerd
39 history
40 docker ps -a
41 docker pull ubuntu
42 docker ps -a
43 docker rm a3c9542f3076
44 docker ps -a
45 docker rm d8cca0a8d62c
46 docker rm d0584214f703b
47 docker ps -a
48 docker start 0584214f703b
49 docker ps -a
50 docker rm 0584214f703b
51* docker
52 docker rm 0584214f703b
53 docker ps -a
54 docker restart e3cb8e2fbf42
55 docker ps -a
56 docker stop e3cb8e2fbf42
57 docker rm e3cb8e2fbf42
58 docker ps -a
59 docker start d4a3a68b47a9
60 docker ps -a
61 history
62 docker pause d4a3a68b47a9
63 docker start d4a3a68b47a9
64 history
65 docker ps -a
66 docker pull https
67 docker ps -a
68 docker exec -it 75cafc0d6fee /bin/bash
69 docker ps -a
70 docker kill d83c0d7cfc94
71 docker ps -a
72 docker rm d83c0d7cfc94
73 docker ps -a
74 docker kill d4a3a68b47a9
75 docker start d4a3a68b47a9
76 docker ps -a
77 docker pull https
78 docker pull httpd
79 history
80 docker images
81 docker run -d ubuntu
82 docker ps -a
83 docker start 8b4b7eae0d66
84 docker ps -a
85 docker rm 8b4b7eae0d66
86 docker ps -a
87 docker run -d ubuntu
88 docker ps -a
89 docker kill 79e0ca51ae30
90 docker start 79e0ca51ae30
91 docker kill 79e0ca51ae30
92 docker ps -a
93 docker kill 79e0ca51ae30
94 docker start 79e0ca51ae30
95 docker ps -a
96 history
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" About a minute ago Exited (0) 20 seconds ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 46 minutes ago Exited (0) 8 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 40 minutes dreamy_northcutt
[root@localhost ~]# docker pause 79e0ca51ae30
Error response from daemon: Container 79e0ca51ae3062ee53f9cdcdcaecd8a5b72efec47472f22954e23a252a69ef5e is not running
[root@localhost ~]# docker start 79e0ca51ae30
79e0ca51ae30
[root@localhost ~]# docker start 79e0ca51ae30
79e0ca51ae30
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" 2 minutes ago Exited (0) 4 seconds ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 47 minutes ago Exited (0) 9 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 41 minutes dreamy_northcutt
[root@localhost ~]# docker inpsect 75cafc0d6fee
docker: 'inpsect' is not a docker command.
See 'docker --help'
[root@localhost ~]# docker inspect 75cafc0d6fee
[
{
"Id": "75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0",
"Created": "2021-07-21T03:23:53.810010743Z",
"Path": "bash",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 32298,
"ExitCode": 0,
"Error": "",
"StartedAt": "2021-07-21T04:57:11.432175262Z",
"FinishedAt": "2021-07-21T04:41:15.614452246Z"
},
"Image": "sha256:c29284518f497b8c5f49933e74e43ca5221e69c8251e780427f7d12f716625ff",
"ResolvConfPath": "/var/lib/docker/containers/75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0/hostname",
"HostsPath": "/var/lib/docker/containers/75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0/hosts",
"LogPath": "/var/lib/docker/containers/75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0/75cafc0d6feed6e3bb58e5440848615c1d632b0608787f773cfdf7324289f9f0-json.log",
"Name": "/dreamy_northcutt",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": [
"864011e4b2d1dfa64dd0bfe4bba63f4b68a4968fbfea75c37d4a6b4c469b4604"
],
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/d979e83f418815ba41cdfe9cfa314d2da9a026c7d0fc49a06a4e28784d5d0344-init/diff:/var/lib/docker/overlay2/30c379b2ef0344227b749d85f2b3acb2f4eb5e80d5eb3d6c774e0756c44bed8b/diff",
"MergedDir": "/var/lib/docker/overlay2/d979e83f418815ba41cdfe9cfa314d2da9a026c7d0fc49a06a4e28784d5d0344/merged",
"UpperDir": "/var/lib/docker/overlay2/d979e83f418815ba41cdfe9cfa314d2da9a026c7d0fc49a06a4e28784d5d0344/diff",
"WorkDir": "/var/lib/docker/overlay2/d979e83f418815ba41cdfe9cfa314d2da9a026c7d0fc49a06a4e28784d5d0344/work"
},
"Name": "overlay2"
},
"Mounts": [],
"Config": {
"Hostname": "75cafc0d6fee",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": true,
"OpenStdin": true,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"bash"
],
"Image": "ubuntu",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "821e502e4615f46592ded9f5a9c098e44452e1a2adba95ff449d6e67514247ee",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/821e502e4615",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "33fd5c8c291ed8b68ef28bd85588d1429126f5ecf195edc29b39daf095333bf9",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "5a526772a3eb1f99a77458456bc2af5652af8bef81fb6d7c84d4f901d882936c",
"EndpointID": "33fd5c8c291ed8b68ef28bd85588d1429126f5ecf195edc29b39daf095333bf9",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
}
}
]
[root@localhost ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 9.6M 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mapper/centos-root 50G 7.3G 43G 15% /
/dev/mapper/centos-home 46G 33M 46G 1% /home
/dev/sda1 1014M 235M 780M 24% /boot
tmpfs 379M 32K 379M 1% /run/user/0
/dev/sr0 59M 59M 0 100% /run/media/root/VBox_GAs_6.1.22
overlay 50G 7.3G 43G 15% /var/lib/docker/overlay2/d979e83f418815ba41cdfe9cfa314d2da9a026c7d0fc49a06a4e28784d5d0344/merged
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest c29284518f49 7 days ago 72.8MB
httpd latest bd29370f84ea 12 days ago 138MB
hello-world latest d1165f221234 4 months ago 13.3kB
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" 4 minutes ago Exited (0) 2 minutes ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 50 minutes ago Exited (0) 11 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 43 minutes dreamy_northcutt
[root@localhost ~]# docker run ubuntu ls
bin
boot
dev
etc
home
lib
lib32
lib64
libx32
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
var
[root@localhost ~]# docker run -d https
Unable to find image 'https:latest' locally
docker: Error response from daemon: pull access denied for https, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
[root@localhost ~]# docker pull https
Using default tag: latest
^[[A^C
[root@localhost ~]# ^C
[root@localhost ~]# ^C
[root@localhost ~]# ^C
[root@localhost ~]# ^C
[root@localhost ~]# docker pull httpd
Using default tag: latest
latest: Pulling from library/httpd
Digest: sha256:1fd07d599a519b594b756d2e4e43a72edf7e30542ce646f5eb3328cf3b12341a
Status: Image is up to date for httpd:latest
docker.io/library/httpd:latest
[root@localhost ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest c29284518f49 7 days ago 72.8MB
httpd latest bd29370f84ea 12 days ago 138MB
hello-world latest d1165f221234 4 months ago 13.3kB
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
82da9c001d75 ubuntu "ls" About a minute ago Exited (0) About a minute ago intelligent_napier
79e0ca51ae30 ubuntu "bash" 6 minutes ago Exited (0) 4 minutes ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 51 minutes ago Exited (0) 13 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 45 minutes dreamy_northcutt
[root@localhost ~]# docker stop 82da9c001d75
82da9c001d75
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
82da9c001d75 ubuntu "ls" About a minute ago Exited (0) About a minute ago intelligent_napier
79e0ca51ae30 ubuntu "bash" 6 minutes ago Exited (0) 4 minutes ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 52 minutes ago Exited (0) 14 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 45 minutes dreamy_northcutt
[root@localhost ~]# docker kill 82da9c001d75
Error response from daemon: Cannot kill container: 82da9c001d75: Container 82da9c001d75bc4d5a604e0bb970678e36f0fc9bbd24c66afd3abf3a34f010fb is not running
[root@localhost ~]# sudo yum remove docker docker-engine
Loaded plugins: fastestmirror, langpacks
No Match for argument: docker
No Match for argument: docker-engine
No Packages marked for removal
[root@localhost ~]# sudo yum remove docker docker-engine-selinux
Loaded plugins: fastestmirror, langpacks
No Match for argument: docker
Resolving Dependencies
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be erased
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.4.8-3.1.el7.x86_64
--> Running transaction check
---> Package containerd.io.x86_64 0:1.4.8-3.1.el7 will be erased
---> Package docker-ce.x86_64 3:20.10.7-3.el7 will be erased
--> Processing Dependency: docker-ce for package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Removing:
container-selinux noarch 2:2.119.2-1.911c772.el7_8 @extras 41 k
Removing for dependencies:
containerd.io x86_64 1.4.8-3.1.el7 @docker-ce-stable 112 M
docker-ce x86_64 3:20.10.7-3.el7 @docker-ce-stable 115 M
docker-ce-rootless-extras x86_64 20.10.7-3.el7 @docker-ce-stable 24 M
Transaction Summary
========================================================================================================================================================================
Remove 1 Package (+3 Dependent packages)
Installed size: 251 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : docker-ce-rootless-extras-20.10.7-3.el7.x86_64 1/4
Erasing : 3:docker-ce-20.10.7-3.el7.x86_64 2/4
Erasing : containerd.io-1.4.8-3.1.el7.x86_64 3/4
Erasing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 4/4
Verifying : 3:docker-ce-20.10.7-3.el7.x86_64 1/4
Verifying : containerd.io-1.4.8-3.1.el7.x86_64 2/4
Verifying : docker-ce-rootless-extras-20.10.7-3.el7.x86_64 3/4
Verifying : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 4/4
Removed:
container-selinux.noarch 2:2.119.2-1.911c772.el7_8
Dependency Removed:
containerd.io.x86_64 0:1.4.8-3.1.el7 docker-ce.x86_64 3:20.10.7-3.el7 docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7
Complete!
[root@localhost ~]# docker images
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@localhost ~]# docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@localhost ~]# sudo -s
[root@localhost ~]# sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
Package yum-utils-1.1.31-54.el7_8.noarch already installed and latest version
Package device-mapper-persistent-data-0.8.5-3.el7_9.2.x86_64 already installed and latest version
Package 7:lvm2-2.02.187-6.el7_9.5.x86_64 already installed and latest version
Nothing to do
[root@localhost ~]# docker ps -a
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[root@localhost ~]# sudo yum install -y yum-utils device-mapper-persistent-data lvm2sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo^C
[root@localhost ~]# sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror, langpacks
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo
[root@localhost ~]# sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
epel-release-latest-7.noarch.rpm | 15 kB 00:00:00
Examining /var/tmp/yum-root-hE30PM/epel-release-latest-7.noarch.rpm: epel-release-7-13.noarch
/var/tmp/yum-root-hE30PM/epel-release-latest-7.noarch.rpm: does not update installed package.
Error: Nothing to do
[root@localhost ~]# sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
Loaded plugins: fastestmirror, langpacks
[root@localhost ~]# sudo yum-config-manager --enable rhui-REGION-rhel-server-extrassudo yum install -y docker-ce^C
[root@localhost ~]# ^C
[root@localhost ~]# ^C
[root@localhost ~]# sudo yum install -y docker-ce
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos.excellmedia.net
* epel: repos.del.extreme-ix.org
* extras: centos.excellmedia.net
* updates: centos.excellmedia.net
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:20.10.7-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.4.1 for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Processing Dependency: docker-ce-rootless-extras for package: 3:docker-ce-20.10.7-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
---> Package containerd.io.x86_64 0:1.4.8-3.1.el7 will be installed
---> Package docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
docker-ce x86_64 3:20.10.7-3.el7 docker-ce-stable 27 M
Installing for dependencies:
container-selinux noarch 2:2.119.2-1.911c772.el7_8 extras 40 k
containerd.io x86_64 1.4.8-3.1.el7 docker-ce-stable 30 M
docker-ce-rootless-extras x86_64 20.10.7-3.el7 docker-ce-stable 9.2 M
Transaction Summary
========================================================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 66 M
Installed size: 251 M
Downloading packages:
(1/4): container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm | 40 kB 00:00:00
(2/4): containerd.io-1.4.8-3.1.el7.x86_64.rpm | 30 MB 00:00:07
(3/4): docker-ce-20.10.7-3.el7.x86_64.rpm | 27 MB 00:00:08
(4/4): docker-ce-rootless-extras-20.10.7-3.el7.x86_64.rpm | 9.2 MB 00:00:01
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 7.3 MB/s | 66 MB 00:00:08
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 1/4
Installing : containerd.io-1.4.8-3.1.el7.x86_64 2/4
Installing : docker-ce-rootless-extras-20.10.7-3.el7.x86_64 3/4
Installing : 3:docker-ce-20.10.7-3.el7.x86_64 4/4
Verifying : 3:docker-ce-20.10.7-3.el7.x86_64 1/4
Verifying : containerd.io-1.4.8-3.1.el7.x86_64 2/4
Verifying : docker-ce-rootless-extras-20.10.7-3.el7.x86_64 3/4
Verifying : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 4/4
Installed:
docker-ce.x86_64 3:20.10.7-3.el7
Dependency Installed:
container-selinux.noarch 2:2.119.2-1.911c772.el7_8 containerd.io.x86_64 0:1.4.8-3.1.el7 docker-ce-rootless-extras.x86_64 0:20.10.7-3.el7
Complete!
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
82da9c001d75 ubuntu "ls" 6 minutes ago Exited (0) 6 minutes ago intelligent_napier
79e0ca51ae30 ubuntu "bash" 11 minutes ago Exited (0) 9 minutes ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 56 minutes ago Exited (0) 18 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Exited (0) 3 minutes ago dreamy_northcutt
[root@localhost ~]# docker start 75cafc0d6fee
75cafc0d6fee
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
82da9c001d75 ubuntu "ls" 6 minutes ago Exited (0) 6 minutes ago intelligent_napier
79e0ca51ae30 ubuntu "bash" 11 minutes ago Exited (0) 9 minutes ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 57 minutes ago Exited (0) 18 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 1 second dreamy_northcutt
[root@localhost ~]# docker kill 82da9c001d75
Error response from daemon: Cannot kill container: 82da9c001d75: Container 82da9c001d75bc4d5a604e0bb970678e36f0fc9bbd24c66afd3abf3a34f010fb is not running
[root@localhost ~]# docker start 82da9c001d75
82da9c001d75
[root@localhost ~]# docker kill 82da9c001d75
Error response from daemon: Cannot kill container: 82da9c001d75: Container 82da9c001d75bc4d5a604e0bb970678e36f0fc9bbd24c66afd3abf3a34f010fb is not running
[root@localhost ~]# docker rm 82da9c001d75
82da9c001d75
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
79e0ca51ae30 ubuntu "bash" 12 minutes ago Exited (0) 10 minutes ago elated_fermat
d4a3a68b47a9 hello-world "/hello" 57 minutes ago Exited (0) 19 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 33 seconds dreamy_northcutt
[root@localhost ~]# docker start 79e0ca51ae30
79e0ca51ae30
[root@localhost ~]# docker rm 79e0ca51ae30
79e0ca51ae30
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 57 minutes ago Exited (0) 19 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 55 seconds dreamy_northcutt
[root@localhost ~]# docker pull https
Using default tag: latest
Error response from daemon: pull access denied for https, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
[root@localhost ~]# docker pull httpd
Using default tag: latest
latest: Pulling from library/httpd
Digest: sha256:1fd07d599a519b594b756d2e4e43a72edf7e30542ce646f5eb3328cf3b12341a
Status: Image is up to date for httpd:latest
docker.io/library/httpd:latest
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d4a3a68b47a9 hello-world "/hello" 59 minutes ago Exited (0) 20 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 2 minutes dreamy_northcutt
[root@localhost ~]# docker run -d httpd
e57a2bfc474edee7257f9bbc5e80f3f7a1b351c491ac5233b0dc2d39a7b4438a
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e57a2bfc474e httpd "httpd-foreground" 3 seconds ago Up 2 seconds 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" 59 minutes ago Exited (0) 21 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 2 minutes dreamy_northcutt
[root@localhost ~]# docker exec -it 75cafc0d6fee /bin/bash
root@75cafc0d6fee:/# ls
bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var
root@75cafc0d6fee:/# docker attach 75cafc0d6fee
bash: docker: command not found
root@75cafc0d6fee:/# docker ps
bash: docker: command not found
root@75cafc0d6fee:/# docker run -d -p 80:80 https
bash: docker: command not found
root@75cafc0d6fee:/# docker run -d -p 80:80 httpd
bash: docker: command not found
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e57a2bfc474e httpd "httpd-foreground" 2 minutes ago Up 2 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 23 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 4 minutes dreamy_northcutt
[root@localhost ~]# docker run -d -p 80:80 httpd
99a9b3f7f56c4280ee8e6a22d4ce39f2f4aad51f36ce5e0afa07c79ae9068591
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99a9b3f7f56c httpd "httpd-foreground" 4 seconds ago Up 3 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 2 minutes ago Up 2 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 23 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 2 hours ago Up 5 minutes dreamy_northcutt
[root@localhost ~]# docker attach 75cafc0d6fee
root@75cafc0d6fee:/# docker ps -a
bash: docker: command not found
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# ls
anaconda-ks.cfg Desktop Documents Downloads initial-setup-ks.cfg Music Pictures Public Templates Videos
[root@localhost ~]# history
1 ifconfig
2 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3 docker ps -a
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 docker ps -a
9 docker start 75cafc0d6fee
10 docker ps -a
11 docker kill 82da9c001d75
12 docker start 82da9c001d75
13 docker kill 82da9c001d75
14 docker rm 82da9c001d75
15 docker ps -a
16 docker start 79e0ca51ae30
17 docker rm 79e0ca51ae30
18 docker ps -a
19 docker pull https
20 docker pull httpd
21 docker ps -a
22 docker run -d httpd
23 docker ps -a
24 docker exec -it 75cafc0d6fee /bin/bash
25 docker ps -a
26 docker run -d -p 80:80 httpd
27 docker ps -a
28 docker attach 75cafc0d6fee
29 ls
30 history
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99a9b3f7f56c httpd "httpd-foreground" 6 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 8 minutes ago Up 8 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 29 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 10 minutes dreamy_northcutt
[root@localhost ~]# docker run -d -p 80:80 httpd
106e7c9b43b8efa114e7c3d214252916a089f77e321a9bfd56b073225dfd9e1d
docker: Error response from daemon: driver failed programming external connectivity on endpoint suspicious_allen (9ae2e8337afd2b76abdba61cd63a18c75e96faa2a9a10e2f11c610e1c98d903b): Bind for 0.0.0.0:80 failed: port is already allocated.
[root@localhost ~]# docker run -d -p 81:80 httpddocker run -d -p 81:80 httpd
Unable to find image 'httpddocker:latest' locally
docker: Error response from daemon: pull access denied for httpddocker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
[root@localhost ~]# docker run -d -p 82:80 httpd
317020ee19e1f218d6c726ae15c55798e09a63f3bf2f6f20b963215e9383244f
[root@localhost ~]# docker run -d -p 81:80
"docker run" requires at least 1 argument.
See 'docker run --help'.
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Run a command in a new container
[root@localhost ~]# docker run -d -p 81:80 https
Unable to find image 'https:latest' locally
docker: Error response from daemon: pull access denied for https, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
[root@localhost ~]# docker run -d -p 81:80 httpd
7bf8088b0a5f580003c72bc06edd236e3e7094c87c42bdeac0db64418e37a3a4
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7bf8088b0a5f httpd "httpd-foreground" 6 seconds ago Up 5 seconds 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 58 seconds ago Up 57 seconds 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" About a minute ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 8 minutes ago Up 8 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 11 minutes ago Up 11 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 32 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 13 minutes dreamy_northcutt
[root@localhost ~]# history
1 ifconfig
2 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3 docker ps -a
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 docker ps -a
9 docker start 75cafc0d6fee
10 docker ps -a
11 docker kill 82da9c001d75
12 docker start 82da9c001d75
13 docker kill 82da9c001d75
14 docker rm 82da9c001d75
15 docker ps -a
16 docker start 79e0ca51ae30
17 docker rm 79e0ca51ae30
18 docker ps -a
19 docker pull https
20 docker pull httpd
21 docker ps -a
22 docker run -d httpd
23 docker ps -a
24 docker exec -it 75cafc0d6fee /bin/bash
25 docker ps -a
26 docker run -d -p 80:80 httpd
27 docker ps -a
28 docker attach 75cafc0d6fee
29 ls
30 history
31 docker ps -a
32 docker run -d -p 80:80 httpd
33 docker run -d -p 81:80 httpddocker run -d -p 81:80 httpd
34 docker run -d -p 82:80 httpd
35 docker run -d -p 81:80
36 docker run -d -p 81:80 https
37 docker run -d -p 81:80 httpd
38 docker ps -a
39 history
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7bf8088b0a5f httpd "httpd-foreground" 4 minutes ago Up 4 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 5 minutes ago Up 5 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 6 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 13 minutes ago Up 13 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 16 minutes ago Up 16 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 37 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 18 minutes dreamy_northcutt
[root@localhost ~]# docker attach 75cafc0d6fee
root@75cafc0d6fee:/# docker ps -a
bash: docker: command not found
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# docker attach 75cafc0d6fee
root@75cafc0d6fee:/# ^C
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# ls
anaconda-ks.cfg Desktop Documents Downloads initial-setup-ks.cfg Music Pictures Public Templates Videos
[root@localhost ~]# bash: docker: command not found
bash: bash:: command not found...
Similar command is: 'bash'
[root@localhost ~]# docker images|grep httpd
httpd latest bd29370f84ea 12 days ago 138MB
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7bf8088b0a5f httpd "httpd-foreground" 9 minutes ago Up 9 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 10 minutes ago Up 10 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 10 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 18 minutes ago Up 17 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 20 minutes ago Up 20 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 41 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 22 minutes dreamy_northcutt
[root@localhost ~]# docker run -d -p 8080:80 --name webserver httpd
39c22cc1cbaf645f9364efc3f0a8120b39f8c12b8338b777b4aa1db7f9656826
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
39c22cc1cbaf httpd "httpd-foreground" 3 seconds ago Up 2 seconds 0.0.0.0:8080->80/tcp, :::8080->80/tcp webserver
7bf8088b0a5f httpd "httpd-foreground" 9 minutes ago Up 9 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 10 minutes ago Up 10 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 10 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 18 minutes ago Up 18 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 20 minutes ago Up 20 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 41 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 23 minutes dreamy_northcutt
[root@localhost ~]# apt update
bash: apt: command not found...
[root@localhost ~]# curl -O https://raw.githubusercontent.com/spinnaker/halyard/master/install/debian/InstallHalyard.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9188 100 9188 0 0 17948 0 --:--:-- --:--:-- --:--:-- 17980
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
39c22cc1cbaf httpd "httpd-foreground" 2 minutes ago Up 2 minutes 0.0.0.0:8080->80/tcp, :::8080->80/tcp webserver
7bf8088b0a5f httpd "httpd-foreground" 11 minutes ago Up 11 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 12 minutes ago Up 12 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 12 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 20 minutes ago Up 20 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 22 minutes ago Up 22 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" About an hour ago Exited (0) 44 minutes ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 25 minutes dreamy_northcutt
[root@localhost ~]# docker attach 75cafc0d6fee
root@75cafc0d6fee:/# curl -O https://raw.githubusercontent.com/spinnaker/halyard/master/install/debian/InstallHalyard.sh
bash: curl: command not found
root@75cafc0d6fee:/# curl -O https://raw.githubusercontent.com/spinnaker/halyard/master/install/debian/InstallHalyard.sh^C
root@75cafc0d6fee:/# ^C
root@75cafc0d6fee:/# sudo bash InstallHalyard.sh
bash: sudo: command not found
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# git -version
Unknown option: -version
usage: git [--version] [--help] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
[root@localhost ~]# apt get install apache2
bash: apt: command not found...
[root@localhost ~]# sudo bash InstallHalyard.shdocker run -it ubuntu:latest /bin/bash
bash: InstallHalyard.shdocker: No such file or directory
[root@localhost ~]# apt-get install apache2
bash: apt-get: command not found...
[root@localhost ~]# apt-get install apache2
bash: apt-get: command not found...
[root@localhost ~]# apt-get install apache2
bash: apt-get: command not found...
[root@localhost ~]# docker attach 75cafc0d6fee
root@75cafc0d6fee:/# apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
root@75cafc0d6fee:/# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2
root@75cafc0d6fee:/# yum install apache2
bash: yum: command not found
root@75cafc0d6fee:/# E: Unable to locate package apache2
bash: E:: command not found
root@75cafc0d6fee:/# apt install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package git
root@75cafc0d6fee:/# docker ps -a
bash: docker: command not found
root@75cafc0d6fee:/# ls
bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var
root@75cafc0d6fee:/# sudo apt-get install git
bash: sudo: command not found
root@75cafc0d6fee:/# which git
root@75cafc0d6fee:/# run apt update
bash: run: command not found
root@75cafc0d6fee:/# apt update
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [985 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [474 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1417 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [37.3 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1055 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6303 B]
Get:15 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Get:16 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [428 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [784 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [32.7 kB]
Fetched 18.6 MB in 7s (2850 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@75cafc0d6fee:/# apt install -y git
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ca-certificates git-man krb5-locales less libasn1-8-heimdal libbrotli1 libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libexpat1 libfido2-1
libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3
libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libperl5.30 libpsl5 libroken18-heimdal librtmp1 libsasl2-2
libsasl2-modules libsasl2-modules-db libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase
openssh-client openssl patch perl perl-modules-5.30 publicsuffix xauth
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc krb5-user
libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain libpam-ssh monkeysphere
ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl
The following NEW packages will be installed:
ca-certificates git git-man krb5-locales less libasn1-8-heimdal libbrotli1 libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libexpat1 libfido2-1
libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3
libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libperl5.30 libpsl5 libroken18-heimdal librtmp1 libsasl2-2
libsasl2-modules libsasl2-modules-db libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase
openssh-client openssl patch perl perl-modules-5.30 publicsuffix xauth
0 upgraded, 56 newly installed, 0 to remove and 2 not upgraded.
Need to get 19.7 MB of archives.
After this operation, 110 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2 [2738 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm6 amd64 1.18.1-5 [27.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm-compat4 amd64 1.18.1-5 [6244 B]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.2 [3952 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl amd64 5.30.0-9ubuntu0.2 [224 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.4 [1319 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.4 [620 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.1 [146 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 less amd64 551-1ubuntu0.1 [123 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libbsd0 amd64 0.10.0-1 [45.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 libexpat1 amd64 2.2.9-1build1 [73.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsqlite3-0 amd64 3.31.1-4ubuntu0.2 [549 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 netbase all 6.1 [13.1 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 krb5-locales all 1.17-6ubuntu4.1 [11.4 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal/main amd64 libcbor0.6 amd64 0.6.0-0ubuntu1 [21.1 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 libedit2 amd64 3.1-20191231-1 [87.0 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 libfido2-1 amd64 1.3.1-1ubuntu2 [47.9 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5support0 amd64 1.17-6ubuntu4.1 [30.9 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libk5crypto3 amd64 1.17-6ubuntu4.1 [79.9 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal/main amd64 libkeyutils1 amd64 1.6-6ubuntu1 [10.2 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5-3 amd64 1.17-6ubuntu4.1 [330 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgssapi-krb5-2 amd64 1.17-6ubuntu4.1 [121 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal/main amd64 libpsl5 amd64 0.21.0-1ubuntu1 [51.5 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal/main amd64 libxau6 amd64 1:1.0.9-0ubuntu1 [7488 B]
Get:25 http://archive.ubuntu.com/ubuntu focal/main amd64 libxdmcp6 amd64 1:1.1.3-0ubuntu1 [10.6 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb1 amd64 1.14-2 [44.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libx11-data all 2:1.6.9-2ubuntu1.2 [113 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libx11-6 amd64 2:1.6.9-2ubuntu1.2 [575 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal/main amd64 libxext6 amd64 2:1.3.4-0ubuntu1 [29.1 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal/main amd64 libxmuu1 amd64 2:1.1.3-0ubuntu1 [9728 B]
Get:31 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.2 [671 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal/main amd64 publicsuffix all 20200303.0012-1 [111 kB]
Get:33 http://archive.ubuntu.com/ubuntu focal/main amd64 xauth amd64 1:1.1-0ubuntu1 [25.0 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libbrotli1 amd64 1.0.7-6ubuntu0.1 [267 kB]
Get:35 http://archive.ubuntu.com/ubuntu focal/main amd64 libroken18-heimdal amd64 7.7.0+dfsg-1ubuntu1 [41.8 kB]
Get:36 http://archive.ubuntu.com/ubuntu focal/main amd64 libasn1-8-heimdal amd64 7.7.0+dfsg-1ubuntu1 [181 kB]
Get:37 http://archive.ubuntu.com/ubuntu focal/main amd64 libheimbase1-heimdal amd64 7.7.0+dfsg-1ubuntu1 [29.7 kB]
Get:38 http://archive.ubuntu.com/ubuntu focal/main amd64 libhcrypto4-heimdal amd64 7.7.0+dfsg-1ubuntu1 [87.9 kB]
Get:39 http://archive.ubuntu.com/ubuntu focal/main amd64 libwind0-heimdal amd64 7.7.0+dfsg-1ubuntu1 [48.0 kB]
Get:40 http://archive.ubuntu.com/ubuntu focal/main amd64 libhx509-5-heimdal amd64 7.7.0+dfsg-1ubuntu1 [107 kB]
Get:41 http://archive.ubuntu.com/ubuntu focal/main amd64 libkrb5-26-heimdal amd64 7.7.0+dfsg-1ubuntu1 [208 kB]
Get:42 http://archive.ubuntu.com/ubuntu focal/main amd64 libheimntlm0-heimdal amd64 7.7.0+dfsg-1ubuntu1 [15.1 kB]
Get:43 http://archive.ubuntu.com/ubuntu focal/main amd64 libgssapi3-heimdal amd64 7.7.0+dfsg-1ubuntu1 [96.1 kB]
Get:44 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-2 [14.9 kB]
Get:45 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-2 amd64 2.1.27+dfsg-2 [49.3 kB]
Get:46 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-common all 2.4.49+dfsg-2ubuntu1.8 [16.6 kB]
Get:47 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-2.4-2 amd64 2.4.49+dfsg-2ubuntu1.8 [155 kB]
Get:48 http://archive.ubuntu.com/ubuntu focal/main amd64 libnghttp2-14 amd64 1.40.0-1build1 [78.7 kB]
Get:49 http://archive.ubuntu.com/ubuntu focal/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build1 [54.9 kB]
Get:50 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssh-4 amd64 0.9.3-2ubuntu2.1 [170 kB]
Get:51 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.5 [232 kB]
Get:52 http://archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:53 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.1 [884 kB]
Get:54 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.1 [4557 kB]
Get:55 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-modules amd64 2.1.27+dfsg-2 [49.1 kB]
Get:56 http://archive.ubuntu.com/ubuntu focal/main amd64 patch amd64 2.7.6-6 [105 kB]
Fetched 19.7 MB in 11s (1875 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package perl-modules-5.30.
(Reading database ... 4127 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.30_5.30.0-9ubuntu0.2_all.deb ...
Unpacking perl-modules-5.30 (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../01-libgdbm6_1.18.1-5_amd64.deb ...
Unpacking libgdbm6:amd64 (1.18.1-5) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../02-libgdbm-compat4_1.18.1-5_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-5) ...
Selecting previously unselected package libperl5.30:amd64.
Preparing to unpack .../03-libperl5.30_5.30.0-9ubuntu0.2_amd64.deb ...
Unpacking libperl5.30:amd64 (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.30.0-9ubuntu0.2_amd64.deb ...
Unpacking perl (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../05-libssl1.1_1.1.1f-1ubuntu2.4_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.4) ...
Selecting previously unselected package openssl.
Preparing to unpack .../06-openssl_1.1.1f-1ubuntu2.4_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.4) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../07-ca-certificates_20210119~20.04.1_all.deb ...
Unpacking ca-certificates (20210119~20.04.1) ...
Selecting previously unselected package less.
Preparing to unpack .../08-less_551-1ubuntu0.1_amd64.deb ...
Unpacking less (551-1ubuntu0.1) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../09-libbsd0_0.10.0-1_amd64.deb ...
Unpacking libbsd0:amd64 (0.10.0-1) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../10-libexpat1_2.2.9-1build1_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.9-1build1) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../11-libsqlite3-0_3.31.1-4ubuntu0.2_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.31.1-4ubuntu0.2) ...
Selecting previously unselected package netbase.
Preparing to unpack .../12-netbase_6.1_all.deb ...
Unpacking netbase (6.1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../13-krb5-locales_1.17-6ubuntu4.1_all.deb ...
Unpacking krb5-locales (1.17-6ubuntu4.1) ...
Selecting previously unselected package libcbor0.6:amd64.
Preparing to unpack .../14-libcbor0.6_0.6.0-0ubuntu1_amd64.deb ...
Unpacking libcbor0.6:amd64 (0.6.0-0ubuntu1) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../15-libedit2_3.1-20191231-1_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20191231-1) ...
Selecting previously unselected package libfido2-1:amd64.
Preparing to unpack .../16-libfido2-1_1.3.1-1ubuntu2_amd64.deb ...
Unpacking libfido2-1:amd64 (1.3.1-1ubuntu2) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../17-libkrb5support0_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../18-libk5crypto3_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../19-libkeyutils1_1.6-6ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.6-6ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../20-libkrb5-3_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../21-libgssapi-krb5-2_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../22-libpsl5_0.21.0-1ubuntu1_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1ubuntu1) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../23-libxau6_1%3a1.0.9-0ubuntu1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.9-0ubuntu1) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../24-libxdmcp6_1%3a1.1.3-0ubuntu1_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.3-0ubuntu1) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../25-libxcb1_1.14-2_amd64.deb ...
Unpacking libxcb1:amd64 (1.14-2) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../26-libx11-data_2%3a1.6.9-2ubuntu1.2_all.deb ...
Unpacking libx11-data (2:1.6.9-2ubuntu1.2) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../27-libx11-6_2%3a1.6.9-2ubuntu1.2_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.9-2ubuntu1.2) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../28-libxext6_2%3a1.3.4-0ubuntu1_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.4-0ubuntu1) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../29-libxmuu1_2%3a1.1.3-0ubuntu1_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.3-0ubuntu1) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../30-openssh-client_1%3a8.2p1-4ubuntu0.2_amd64.deb ...
Unpacking openssh-client (1:8.2p1-4ubuntu0.2) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../31-publicsuffix_20200303.0012-1_all.deb ...
Unpacking publicsuffix (20200303.0012-1) ...
Selecting previously unselected package xauth.
Preparing to unpack .../32-xauth_1%3a1.1-0ubuntu1_amd64.deb ...
Unpacking xauth (1:1.1-0ubuntu1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../33-libbrotli1_1.0.7-6ubuntu0.1_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.7-6ubuntu0.1) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../34-libroken18-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../35-libasn1-8-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../36-libheimbase1-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../37-libhcrypto4-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../38-libwind0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../39-libhx509-5-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../40-libkrb5-26-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../41-libheimntlm0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../42-libgssapi3-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../43-libsasl2-modules-db_2.1.27+dfsg-2_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-2) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../44-libsasl2-2_2.1.27+dfsg-2_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-2) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../45-libldap-common_2.4.49+dfsg-2ubuntu1.8_all.deb ...
Unpacking libldap-common (2.4.49+dfsg-2ubuntu1.8) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../46-libldap-2.4-2_2.4.49+dfsg-2ubuntu1.8_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../47-libnghttp2-14_1.40.0-1build1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.40.0-1build1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../48-librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ...
Selecting previously unselected package libssh-4:amd64.
Preparing to unpack .../49-libssh-4_0.9.3-2ubuntu2.1_amd64.deb ...
Unpacking libssh-4:amd64 (0.9.3-2ubuntu2.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../50-libcurl3-gnutls_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.5) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../51-liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../52-git-man_1%3a2.25.1-1ubuntu3.1_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3.1) ...
Selecting previously unselected package git.
Preparing to unpack .../53-git_1%3a2.25.1-1ubuntu3.1_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3.1) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../54-libsasl2-modules_2.1.27+dfsg-2_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-2) ...
Selecting previously unselected package patch.
Preparing to unpack .../55-patch_2.7.6-6_amd64.deb ...
Unpacking patch (2.7.6-6) ...
Setting up libexpat1:amd64 (2.2.9-1build1) ...
Setting up libxau6:amd64 (1:1.0.9-0ubuntu1) ...
Setting up libkeyutils1:amd64 (1.6-6ubuntu1) ...
Setting up libpsl5:amd64 (0.21.0-1ubuntu1) ...
Setting up perl-modules-5.30 (5.30.0-9ubuntu0.2) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.4) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Setting up libbrotli1:amd64 (1.0.7-6ubuntu0.1) ...
Setting up libsqlite3-0:amd64 (3.31.1-4ubuntu0.2) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2) ...
Setting up libnghttp2-14:amd64 (1.40.0-1build1) ...
Setting up less (551-1ubuntu0.1) ...
Setting up krb5-locales (1.17-6ubuntu4.1) ...
Setting up libcbor0.6:amd64 (0.6.0-0ubuntu1) ...
Setting up libldap-common (2.4.49+dfsg-2ubuntu1.8) ...
Setting up libkrb5support0:amd64 (1.17-6ubuntu4.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2) ...
Setting up libx11-data (2:1.6.9-2ubuntu1.2) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ...
Setting up patch (2.7.6-6) ...
Setting up libk5crypto3:amd64 (1.17-6ubuntu4.1) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-2) ...
Setting up libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up git-man (1:2.25.1-1ubuntu3.1) ...
Setting up netbase (6.1) ...
Setting up libkrb5-3:amd64 (1.17-6ubuntu4.1) ...
Setting up libfido2-1:amd64 (1.3.1-1ubuntu2) ...
Setting up openssl (1.1.1f-1ubuntu2.4) ...
Setting up libbsd0:amd64 (0.10.0-1) ...
Setting up publicsuffix (20200303.0012-1) ...
Setting up libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libgdbm6:amd64 (1.18.1-5) ...
Setting up libxdmcp6:amd64 (1:1.1.3-0ubuntu1) ...
Setting up libxcb1:amd64 (1.14-2) ...
Setting up libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libedit2:amd64 (3.1-20191231-1) ...
Setting up libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up ca-certificates (20210119~20.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Setting up libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ...
Setting up libgdbm-compat4:amd64 (1.18.1-5) ...
Setting up libssh-4:amd64 (0.9.3-2ubuntu2.1) ...
Setting up libperl5.30:amd64 (5.30.0-9ubuntu0.2) ...
Setting up libx11-6:amd64 (2:1.6.9-2ubuntu1.2) ...
Setting up libxmuu1:amd64 (2:1.1.3-0ubuntu1) ...
Setting up openssh-client (1:8.2p1-4ubuntu0.2) ...
Setting up libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libxext6:amd64 (2:1.3.4-0ubuntu1) ...
Setting up perl (5.30.0-9ubuntu0.2) ...
Setting up xauth (1:1.1-0ubuntu1) ...
Setting up libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up liberror-perl (0.17029-1) ...
Setting up libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ...
Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.5) ...
Setting up git (1:2.25.1-1ubuntu3.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for ca-certificates (20210119~20.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
root@75cafc0d6fee:/# apt install -y apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
apache2-bin apache2-data apache2-utils file libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libcurl4 libicu66 libjansson4 liblua5.2-0 libmagic-mgc
libmagic1 libxml2 mime-support ssl-cert tzdata xz-utils
Suggested packages:
apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser ufw openssl-blacklist
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils file libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libcurl4 libicu66 libjansson4 liblua5.2-0
libmagic-mgc libmagic1 libxml2 mime-support ssl-cert tzdata xz-utils
0 upgraded, 20 newly installed, 0 to remove and 2 not upgraded.
Need to get 12.0 MB of archives.
After this operation, 55.0 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libapr1 amd64 1.6.5-1ubuntu1 [91.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1 amd64 1.6.1-4ubuntu2 [84.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-dbd-sqlite3 amd64 1.6.1-4ubuntu2 [10.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libaprutil1-ldap amd64 1.6.1-4ubuntu2 [8736 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.5 [234 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main amd64 libjansson4 amd64 2.12-1build1 [28.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 liblua5.2-0 amd64 5.2.4-1.1build3 [106 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 tzdata all 2021a-0ubuntu0.20.04 [295 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 libicu66 amd64 66.1-2ubuntu2 [8520 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libxml2 amd64 2.9.10+dfsg-5ubuntu0.20.04.1 [640 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-bin amd64 2.4.41-4ubuntu3.4 [1180 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-data all 2.4.41-4ubuntu3.4 [159 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2-utils amd64 2.4.41-4ubuntu3.4 [84.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 mime-support all 3.64ubuntu1 [30.6 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 apache2 amd64 2.4.41-4ubuntu3.4 [95.5 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 libmagic-mgc amd64 1:5.38-4 [218 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 libmagic1 amd64 1:5.38-4 [75.9 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal/main amd64 file amd64 1:5.38-4 [23.3 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 xz-utils amd64 5.2.4-1ubuntu1 [82.5 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal/main amd64 ssl-cert all 1.0.39 [17.0 kB]
Fetched 12.0 MB in 6s (1873 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libapr1:amd64.
(Reading database ... 7949 files and directories currently installed.)
Preparing to unpack .../00-libapr1_1.6.5-1ubuntu1_amd64.deb ...
Unpacking libapr1:amd64 (1.6.5-1ubuntu1) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../01-libaprutil1_1.6.1-4ubuntu2_amd64.deb ...
Unpacking libaprutil1:amd64 (1.6.1-4ubuntu2) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../02-libaprutil1-dbd-sqlite3_1.6.1-4ubuntu2_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.6.1-4ubuntu2) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../03-libaprutil1-ldap_1.6.1-4ubuntu2_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.6.1-4ubuntu2) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../04-libcurl4_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.5) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../05-libjansson4_2.12-1build1_amd64.deb ...
Unpacking libjansson4:amd64 (2.12-1build1) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../06-liblua5.2-0_5.2.4-1.1build3_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1build3) ...
Selecting previously unselected package tzdata.
Preparing to unpack .../07-tzdata_2021a-0ubuntu0.20.04_all.deb ...
Unpacking tzdata (2021a-0ubuntu0.20.04) ...
Selecting previously unselected package libicu66:amd64.
Preparing to unpack .../08-libicu66_66.1-2ubuntu2_amd64.deb ...
Unpacking libicu66:amd64 (66.1-2ubuntu2) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../09-libxml2_2.9.10+dfsg-5ubuntu0.20.04.1_amd64.deb ...
Unpacking libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.1) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../10-apache2-bin_2.4.41-4ubuntu3.4_amd64.deb ...
Unpacking apache2-bin (2.4.41-4ubuntu3.4) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../11-apache2-data_2.4.41-4ubuntu3.4_all.deb ...
Unpacking apache2-data (2.4.41-4ubuntu3.4) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../12-apache2-utils_2.4.41-4ubuntu3.4_amd64.deb ...
Unpacking apache2-utils (2.4.41-4ubuntu3.4) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../13-mime-support_3.64ubuntu1_all.deb ...
Unpacking mime-support (3.64ubuntu1) ...
Selecting previously unselected package apache2.
Preparing to unpack .../14-apache2_2.4.41-4ubuntu3.4_amd64.deb ...
Unpacking apache2 (2.4.41-4ubuntu3.4) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../15-libmagic-mgc_1%3a5.38-4_amd64.deb ...
Unpacking libmagic-mgc (1:5.38-4) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../16-libmagic1_1%3a5.38-4_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.38-4) ...
Selecting previously unselected package file.
Preparing to unpack .../17-file_1%3a5.38-4_amd64.deb ...
Unpacking file (1:5.38-4) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../18-xz-utils_5.2.4-1ubuntu1_amd64.deb ...
Unpacking xz-utils (5.2.4-1ubuntu1) ...
Selecting previously unselected package ssl-cert.
Preparing to unpack .../19-ssl-cert_1.0.39_all.deb ...
Unpacking ssl-cert (1.0.39) ...
Setting up mime-support (3.64ubuntu1) ...
Setting up libmagic-mgc (1:5.38-4) ...
Setting up libmagic1:amd64 (1:5.38-4) ...
Setting up libapr1:amd64 (1.6.5-1ubuntu1) ...
Setting up file (1:5.38-4) ...
Setting up libjansson4:amd64 (2.12-1build1) ...
Setting up tzdata (2021a-0ubuntu0.20.04) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Configuring tzdata
------------------
Please select the geographic area in which you live. Subsequent configuration questions will narrow this down by presenting a list of cities, representing the time
zones in which they are located.
1. Africa 2. America 3. Antarctica 4. Australia 5. Arctic 6. Asia 7. Atlantic 8. Europe 9. Indian 10. Pacific 11. SystemV 12. US 13. Etc
Geographic area: 9
Please select the city or region corresponding to your time zone.
1. Antananarivo 2. Chagos 3. Christmas 4. Cocos 5. Comoro 6. Kerguelen 7. Mahe 8. Maldives 9. Mauritius 10. Mayotte 11. Reunion
Time zone: 11
Current default time zone: 'Indian/Reunion'
Local time is now: Wed Jul 21 10:28:52 +04 2021.
Universal Time is now: Wed Jul 21 06:28:52 UTC 2021.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
Setting up ssl-cert (1.0.39) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Setting up xz-utils (5.2.4-1ubuntu1) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/lzma.1.gz because associated file /usr/share/man/man1/xz.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/unlzma.1.gz because associated file /usr/share/man/man1/unxz.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzcat.1.gz because associated file /usr/share/man/man1/xzcat.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzmore.1.gz because associated file /usr/share/man/man1/xzmore.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzless.1.gz because associated file /usr/share/man/man1/xzless.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzdiff.1.gz because associated file /usr/share/man/man1/xzdiff.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzcmp.1.gz because associated file /usr/share/man/man1/xzcmp.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzgrep.1.gz because associated file /usr/share/man/man1/xzgrep.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzegrep.1.gz because associated file /usr/share/man/man1/xzegrep.1.gz (of link group lzma) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/lzfgrep.1.gz because associated file /usr/share/man/man1/xzfgrep.1.gz (of link group lzma) doesn't exist
Setting up liblua5.2-0:amd64 (5.2.4-1.1build3) ...
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.5) ...
Setting up apache2-data (2.4.41-4ubuntu3.4) ...
Setting up libaprutil1:amd64 (1.6.1-4ubuntu2) ...
Setting up libicu66:amd64 (66.1-2ubuntu2) ...
Setting up libaprutil1-ldap:amd64 (1.6.1-4ubuntu2) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.6.1-4ubuntu2) ...
Setting up libxml2:amd64 (2.9.10+dfsg-5ubuntu0.20.04.1) ...
Setting up apache2-utils (2.4.41-4ubuntu3.4) ...
Setting up apache2-bin (2.4.41-4ubuntu3.4) ...
Setting up apache2 (2.4.41-4ubuntu3.4) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
root@75cafc0d6fee:/# ls
bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var
root@75cafc0d6fee:/# read escape sequence
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
39c22cc1cbaf httpd "httpd-foreground" 18 minutes ago Up 18 minutes 0.0.0.0:8080->80/tcp, :::8080->80/tcp webserver
7bf8088b0a5f httpd "httpd-foreground" 27 minutes ago Up 27 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 28 minutes ago Up 28 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 29 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 36 minutes ago Up 36 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 39 minutes ago Up 39 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" 2 hours ago Exited (0) About an hour ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 41 minutes dreamy_northcutt
[root@localhost ~]# wget localhost:8080
--2021-07-21 02:29:58-- http://localhost:8080/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 45 [text/html]
Saving to: ‘index.html’
100%[==============================================================================================================================>] 45 --.-K/s in 0s
2021-07-21 02:29:58 (7.63 MB/s) - ‘index.html’ saved [45/45]
[root@localhost ~]# docker run -d -p 8080:80 --name webserver ubuntu
docker: Error response from daemon: Conflict. The container name "/webserver" is already in use by container "39c22cc1cbaf645f9364efc3f0a8120b39f8c12b8338b777b4aa1db7f9656826". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
[root@localhost ~]# docker run -d -p 8080:80 --name appserver ubuntu
7a55498157614bd1fc289e32981a371cc9b6d0010c09725939a0862b22ed48c5
docker: Error response from daemon: driver failed programming external connectivity on endpoint appserver (c4a440ed7f996df5d57a1240f0ba796cc63f1ce82bad8ca0522b30e728e93641): Bind for 0.0.0.0:8080 failed: port is already allocated.
[root@localhost ~]# docker run -d -p 8081:80 --name appserver ubuntu
docker: Error response from daemon: Conflict. The container name "/appserver" is already in use by container "7a55498157614bd1fc289e32981a371cc9b6d0010c09725939a0862b22ed48c5". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
[root@localhost ~]# docker run -d -p 8081:80 --name server ubuntu
7320dd9b3370b4b5079ed94ed677ca6a14349ff1a5ca02aa8e9ab20ef7432326
[root@localhost ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7320dd9b3370 ubuntu "bash" 7 seconds ago Exited (0) 6 seconds ago server
7a5549815761 ubuntu "bash" 33 seconds ago Created appserver
39c22cc1cbaf httpd "httpd-foreground" 20 minutes ago Up 20 minutes 0.0.0.0:8080->80/tcp, :::8080->80/tcp webserver
7bf8088b0a5f httpd "httpd-foreground" 29 minutes ago Up 29 minutes 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 30 minutes ago Up 30 minutes 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 31 minutes ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 38 minutes ago Up 38 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 41 minutes ago Up 41 minutes 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" 2 hours ago Exited (0) About an hour ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 3 hours ago Up 43 minutes dreamy_northcutt
[root@localhost ~]# docker attach 75cafc0d6fee
root@75cafc0d6fee:/# ls
bin boot dev etc home lib lib32 lib64 libx32 media mnt opt proc root run sbin srv sys tmp usr var
root@75cafc0d6fee:/#
How to create a image using Dockerfile
How to share an docker image using hub.docker.com?
Removing intermediate container dde6276f8b36
---> d03a3fcb6ab8
Step 14/34 : ENV TINI_VERSION 0.14.0
---> Running in c7a68caa1d47
Removing intermediate container c7a68caa1d47
---> b61ea158ad5f
Step 15/34 : ENV TINI_SHA 6c41ec7d33e857d4779f14d9c74924cab0c7973485d2972419a3b7c7620ff5fd
---> Running in 8f651e9e226c
Removing intermediate container 8f651e9e226c
---> f07bb2384643
Step 16/34 : RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static-amd64 -o /bin/tini && chmod +x /bin/tini && echo "$TINI_SHA /bin/tini" | sha256sum -c -
---> Running in 56a31ebfbc8b
/bin/tini: OK
Removing intermediate container 56a31ebfbc8b
---> c90cbb6ca76e
Step 17/34 : COPY init.groovy /usr/share/jenkins/ref/init.groovy.d/tcp-slave-agent-port.groovy
COPY failed: file not found in build context or excluded by .dockerignore: stat init.groovy: file does not exist
[root@localhost suresh]#
[root@localhost suresh]# vi dockerfile
[root@localhost suresh]# FROM ubuntu
bash: FROM: command not found...
[root@localhost suresh]# MAINTAINER Rajesh Kumar <rajesh@devopsschool.com?
bash: rajesh@devopsschool.com?: No such file or directory
[root@localhost suresh]# RUN apt-get update
bash: RUN: command not found...
[root@localhost suresh]# RUN apt-get install git -y
bash: RUN: command not found...
[root@localhost suresh]# COPY index.html /opt^C
[root@localhost suresh]# ^C
[root@localhost suresh]# ^C
[root@localhost suresh]# ^C
[root@localhost suresh]# ^C
[root@localhost suresh]# clear
[root@localhost suresh]# touch index.html
[root@localhost suresh]# docker build -t install-git .
Sending build context to Docker daemon 2.56kB
Step 1/5 : FROM ubuntu
---> c29284518f49
Step 2/5 : MAINTAINER Rajesh Kumar <sureshramisetti.br@gmail.com?
---> Running in b1b6c694d88e
Removing intermediate container b1b6c694d88e
---> 629e1f351472
Step 3/5 : RUN apt-get update
---> Running in 57e88f6b7c02
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [986 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1417 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [428 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [37.3 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [474 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1055 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Get:16 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6303 B]
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [784 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [34.7 kB]
Fetched 18.6 MB in 5s (4013 kB/s)
Reading package lists...
Removing intermediate container 57e88f6b7c02
---> 4ad084e71cbd
Step 4/5 : RUN apt-get install git -y
---> Running in b85f3d12a43b
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates git-man krb5-locales less libasn1-8-heimdal libbrotli1
libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libexpat1
libfido2-1 libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
libhx509-5-heimdal libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libperl5.30
libpsl5 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal
libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase
openssh-client openssl patch perl perl-modules-5.30 publicsuffix xauth
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc
krb5-user libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain
libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl
liblocale-codes-perl
The following NEW packages will be installed:
ca-certificates git git-man krb5-locales less libasn1-8-heimdal libbrotli1
libbsd0 libcbor0.6 libcurl3-gnutls libedit2 liberror-perl libexpat1
libfido2-1 libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal
libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal
libhx509-5-heimdal libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3
libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libperl5.30
libpsl5 libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules
libsasl2-modules-db libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal
libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 netbase
openssh-client openssl patch perl perl-modules-5.30 publicsuffix xauth
0 upgraded, 56 newly installed, 0 to remove and 2 not upgraded.
Need to get 19.7 MB of archives.
After this operation, 110 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.2 [2738 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm6 amd64 1.18.1-5 [27.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libgdbm-compat4 amd64 1.18.1-5 [6244 B]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.2 [3952 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 perl amd64 5.30.0-9ubuntu0.2 [224 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.4 [1319 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.4 [620 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 ca-certificates all 20210119~20.04.1 [146 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 less amd64 551-1ubuntu0.1 [123 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/main amd64 libbsd0 amd64 0.10.0-1 [45.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/main amd64 libexpat1 amd64 2.2.9-1build1 [73.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libsqlite3-0 amd64 3.31.1-4ubuntu0.2 [549 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 netbase all 6.1 [13.1 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 krb5-locales all 1.17-6ubuntu4.1 [11.4 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal/main amd64 libcbor0.6 amd64 0.6.0-0ubuntu1 [21.1 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 libedit2 amd64 3.1-20191231-1 [87.0 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal/main amd64 libfido2-1 amd64 1.3.1-1ubuntu2 [47.9 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5support0 amd64 1.17-6ubuntu4.1 [30.9 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libk5crypto3 amd64 1.17-6ubuntu4.1 [79.9 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal/main amd64 libkeyutils1 amd64 1.6-6ubuntu1 [10.2 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libkrb5-3 amd64 1.17-6ubuntu4.1 [330 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libgssapi-krb5-2 amd64 1.17-6ubuntu4.1 [121 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal/main amd64 libpsl5 amd64 0.21.0-1ubuntu1 [51.5 kB]
Get:24 http://archive.ubuntu.com/ubuntu focal/main amd64 libxau6 amd64 1:1.0.9-0ubuntu1 [7488 B]
Get:25 http://archive.ubuntu.com/ubuntu focal/main amd64 libxdmcp6 amd64 1:1.1.3-0ubuntu1 [10.6 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal/main amd64 libxcb1 amd64 1.14-2 [44.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libx11-data all 2:1.6.9-2ubuntu1.2 [113 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libx11-6 amd64 2:1.6.9-2ubuntu1.2 [575 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal/main amd64 libxext6 amd64 2:1.3.4-0ubuntu1 [29.1 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal/main amd64 libxmuu1 amd64 2:1.1.3-0ubuntu1 [9728 B]
Get:31 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.2 [671 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal/main amd64 publicsuffix all 20200303.0012-1 [111 kB]
Get:33 http://archive.ubuntu.com/ubuntu focal/main amd64 xauth amd64 1:1.1-0ubuntu1 [25.0 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libbrotli1 amd64 1.0.7-6ubuntu0.1 [267 kB]
Get:35 http://archive.ubuntu.com/ubuntu focal/main amd64 libroken18-heimdal amd64 7.7.0+dfsg-1ubuntu1 [41.8 kB]
Get:36 http://archive.ubuntu.com/ubuntu focal/main amd64 libasn1-8-heimdal amd64 7.7.0+dfsg-1ubuntu1 [181 kB]
Get:37 http://archive.ubuntu.com/ubuntu focal/main amd64 libheimbase1-heimdal amd64 7.7.0+dfsg-1ubuntu1 [29.7 kB]
Get:38 http://archive.ubuntu.com/ubuntu focal/main amd64 libhcrypto4-heimdal amd64 7.7.0+dfsg-1ubuntu1 [87.9 kB]
Get:39 http://archive.ubuntu.com/ubuntu focal/main amd64 libwind0-heimdal amd64 7.7.0+dfsg-1ubuntu1 [48.0 kB]
Get:40 http://archive.ubuntu.com/ubuntu focal/main amd64 libhx509-5-heimdal amd64 7.7.0+dfsg-1ubuntu1 [107 kB]
Get:41 http://archive.ubuntu.com/ubuntu focal/main amd64 libkrb5-26-heimdal amd64 7.7.0+dfsg-1ubuntu1 [208 kB]
Get:42 http://archive.ubuntu.com/ubuntu focal/main amd64 libheimntlm0-heimdal amd64 7.7.0+dfsg-1ubuntu1 [15.1 kB]
Get:43 http://archive.ubuntu.com/ubuntu focal/main amd64 libgssapi3-heimdal amd64 7.7.0+dfsg-1ubuntu1 [96.1 kB]
Get:44 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-2 [14.9 kB]
Get:45 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-2 amd64 2.1.27+dfsg-2 [49.3 kB]
Get:46 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-common all 2.4.49+dfsg-2ubuntu1.8 [16.6 kB]
Get:47 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libldap-2.4-2 amd64 2.4.49+dfsg-2ubuntu1.8 [155 kB]
Get:48 http://archive.ubuntu.com/ubuntu focal/main amd64 libnghttp2-14 amd64 1.40.0-1build1 [78.7 kB]
Get:49 http://archive.ubuntu.com/ubuntu focal/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2build1 [54.9 kB]
Get:50 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssh-4 amd64 0.9.3-2ubuntu2.1 [170 kB]
Get:51 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.5 [232 kB]
Get:52 http://archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:53 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.1 [884 kB]
Get:54 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.1 [4557 kB]
Get:55 http://archive.ubuntu.com/ubuntu focal/main amd64 libsasl2-modules amd64 2.1.27+dfsg-2 [49.1 kB]
Get:56 http://archive.ubuntu.com/ubuntu focal/main amd64 patch amd64 2.7.6-6 [105 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 19.7 MB in 6s (3197 kB/s)
Selecting previously unselected package perl-modules-5.30.
(Reading database ... 4127 files and directories currently installed.)
Preparing to unpack .../00-perl-modules-5.30_5.30.0-9ubuntu0.2_all.deb ...
Unpacking perl-modules-5.30 (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../01-libgdbm6_1.18.1-5_amd64.deb ...
Unpacking libgdbm6:amd64 (1.18.1-5) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../02-libgdbm-compat4_1.18.1-5_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-5) ...
Selecting previously unselected package libperl5.30:amd64.
Preparing to unpack .../03-libperl5.30_5.30.0-9ubuntu0.2_amd64.deb ...
Unpacking libperl5.30:amd64 (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package perl.
Preparing to unpack .../04-perl_5.30.0-9ubuntu0.2_amd64.deb ...
Unpacking perl (5.30.0-9ubuntu0.2) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../05-libssl1.1_1.1.1f-1ubuntu2.4_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.4) ...
Selecting previously unselected package openssl.
Preparing to unpack .../06-openssl_1.1.1f-1ubuntu2.4_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.4) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../07-ca-certificates_20210119~20.04.1_all.deb ...
Unpacking ca-certificates (20210119~20.04.1) ...
Selecting previously unselected package less.
Preparing to unpack .../08-less_551-1ubuntu0.1_amd64.deb ...
Unpacking less (551-1ubuntu0.1) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../09-libbsd0_0.10.0-1_amd64.deb ...
Unpacking libbsd0:amd64 (0.10.0-1) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../10-libexpat1_2.2.9-1build1_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.9-1build1) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../11-libsqlite3-0_3.31.1-4ubuntu0.2_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.31.1-4ubuntu0.2) ...
Selecting previously unselected package netbase.
Preparing to unpack .../12-netbase_6.1_all.deb ...
Unpacking netbase (6.1) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../13-krb5-locales_1.17-6ubuntu4.1_all.deb ...
Unpacking krb5-locales (1.17-6ubuntu4.1) ...
Selecting previously unselected package libcbor0.6:amd64.
Preparing to unpack .../14-libcbor0.6_0.6.0-0ubuntu1_amd64.deb ...
Unpacking libcbor0.6:amd64 (0.6.0-0ubuntu1) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../15-libedit2_3.1-20191231-1_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20191231-1) ...
Selecting previously unselected package libfido2-1:amd64.
Preparing to unpack .../16-libfido2-1_1.3.1-1ubuntu2_amd64.deb ...
Unpacking libfido2-1:amd64 (1.3.1-1ubuntu2) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../17-libkrb5support0_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../18-libk5crypto3_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../19-libkeyutils1_1.6-6ubuntu1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.6-6ubuntu1) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../20-libkrb5-3_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../21-libgssapi-krb5-2_1.17-6ubuntu4.1_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../22-libpsl5_0.21.0-1ubuntu1_amd64.deb ...
Unpacking libpsl5:amd64 (0.21.0-1ubuntu1) ...
Selecting previously unselected package libxau6:amd64.
Preparing to unpack .../23-libxau6_1%3a1.0.9-0ubuntu1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.9-0ubuntu1) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../24-libxdmcp6_1%3a1.1.3-0ubuntu1_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.3-0ubuntu1) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../25-libxcb1_1.14-2_amd64.deb ...
Unpacking libxcb1:amd64 (1.14-2) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../26-libx11-data_2%3a1.6.9-2ubuntu1.2_all.deb ...
Unpacking libx11-data (2:1.6.9-2ubuntu1.2) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../27-libx11-6_2%3a1.6.9-2ubuntu1.2_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.9-2ubuntu1.2) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../28-libxext6_2%3a1.3.4-0ubuntu1_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.4-0ubuntu1) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../29-libxmuu1_2%3a1.1.3-0ubuntu1_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.3-0ubuntu1) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../30-openssh-client_1%3a8.2p1-4ubuntu0.2_amd64.deb ...
Unpacking openssh-client (1:8.2p1-4ubuntu0.2) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../31-publicsuffix_20200303.0012-1_all.deb ...
Unpacking publicsuffix (20200303.0012-1) ...
Selecting previously unselected package xauth.
Preparing to unpack .../32-xauth_1%3a1.1-0ubuntu1_amd64.deb ...
Unpacking xauth (1:1.1-0ubuntu1) ...
Selecting previously unselected package libbrotli1:amd64.
Preparing to unpack .../33-libbrotli1_1.0.7-6ubuntu0.1_amd64.deb ...
Unpacking libbrotli1:amd64 (1.0.7-6ubuntu0.1) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../34-libroken18-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../35-libasn1-8-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../36-libheimbase1-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../37-libhcrypto4-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../38-libwind0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../39-libhx509-5-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../40-libkrb5-26-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../41-libheimntlm0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../42-libgssapi3-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../43-libsasl2-modules-db_2.1.27+dfsg-2_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-2) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../44-libsasl2-2_2.1.27+dfsg-2_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-2) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../45-libldap-common_2.4.49+dfsg-2ubuntu1.8_all.deb ...
Unpacking libldap-common (2.4.49+dfsg-2ubuntu1.8) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../46-libldap-2.4-2_2.4.49+dfsg-2ubuntu1.8_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../47-libnghttp2-14_1.40.0-1build1_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.40.0-1build1) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../48-librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ...
Selecting previously unselected package libssh-4:amd64.
Preparing to unpack .../49-libssh-4_0.9.3-2ubuntu2.1_amd64.deb ...
Unpacking libssh-4:amd64 (0.9.3-2ubuntu2.1) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../50-libcurl3-gnutls_7.68.0-1ubuntu2.5_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.5) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../51-liberror-perl_0.17029-1_all.deb ...
Unpacking liberror-perl (0.17029-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../52-git-man_1%3a2.25.1-1ubuntu3.1_all.deb ...
Unpacking git-man (1:2.25.1-1ubuntu3.1) ...
Selecting previously unselected package git.
Preparing to unpack .../53-git_1%3a2.25.1-1ubuntu3.1_amd64.deb ...
Unpacking git (1:2.25.1-1ubuntu3.1) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../54-libsasl2-modules_2.1.27+dfsg-2_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-2) ...
Selecting previously unselected package patch.
Preparing to unpack .../55-patch_2.7.6-6_amd64.deb ...
Unpacking patch (2.7.6-6) ...
Setting up libexpat1:amd64 (2.2.9-1build1) ...
Setting up libxau6:amd64 (1:1.0.9-0ubuntu1) ...
Setting up libkeyutils1:amd64 (1.6-6ubuntu1) ...
Setting up libpsl5:amd64 (0.21.0-1ubuntu1) ...
Setting up perl-modules-5.30 (5.30.0-9ubuntu0.2) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.4) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libbrotli1:amd64 (1.0.7-6ubuntu0.1) ...
Setting up libsqlite3-0:amd64 (3.31.1-4ubuntu0.2) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-2) ...
Setting up libnghttp2-14:amd64 (1.40.0-1build1) ...
Setting up less (551-1ubuntu0.1) ...
Setting up krb5-locales (1.17-6ubuntu4.1) ...
Setting up libcbor0.6:amd64 (0.6.0-0ubuntu1) ...
Setting up libldap-common (2.4.49+dfsg-2ubuntu1.8) ...
Setting up libkrb5support0:amd64 (1.17-6ubuntu4.1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-2) ...
Setting up libx11-data (2:1.6.9-2ubuntu1.2) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2build1) ...
Setting up patch (2.7.6-6) ...
Setting up libk5crypto3:amd64 (1.17-6ubuntu4.1) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-2) ...
Setting up libroken18-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up git-man (1:2.25.1-1ubuntu3.1) ...
Setting up netbase (6.1) ...
Setting up libkrb5-3:amd64 (1.17-6ubuntu4.1) ...
Setting up libfido2-1:amd64 (1.3.1-1ubuntu2) ...
Setting up openssl (1.1.1f-1ubuntu2.4) ...
Setting up libbsd0:amd64 (0.10.0-1) ...
Setting up publicsuffix (20200303.0012-1) ...
Setting up libheimbase1-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libgdbm6:amd64 (1.18.1-5) ...
Setting up libxdmcp6:amd64 (1:1.1.3-0ubuntu1) ...
Setting up libxcb1:amd64 (1.14-2) ...
Setting up libasn1-8-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libedit2:amd64 (3.1-20191231-1) ...
Setting up libhcrypto4-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up ca-certificates (20210119~20.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Updating certificates in /etc/ssl/certs...
129 added, 0 removed; done.
Setting up libwind0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libgssapi-krb5-2:amd64 (1.17-6ubuntu4.1) ...
Setting up libgdbm-compat4:amd64 (1.18.1-5) ...
Setting up libssh-4:amd64 (0.9.3-2ubuntu2.1) ...
Setting up libperl5.30:amd64 (5.30.0-9ubuntu0.2) ...
Setting up libx11-6:amd64 (2:1.6.9-2ubuntu1.2) ...
Setting up libxmuu1:amd64 (2:1.1.3-0ubuntu1) ...
Setting up openssh-client (1:8.2p1-4ubuntu0.2) ...
Setting up libhx509-5-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libxext6:amd64 (2:1.3.4-0ubuntu1) ...
Setting up perl (5.30.0-9ubuntu0.2) ...
Setting up xauth (1:1.1-0ubuntu1) ...
Setting up libkrb5-26-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libheimntlm0-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up liberror-perl (0.17029-1) ...
Setting up libgssapi3-heimdal:amd64 (7.7.0+dfsg-1ubuntu1) ...
Setting up libldap-2.4-2:amd64 (2.4.49+dfsg-2ubuntu1.8) ...
Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.5) ...
Setting up git (1:2.25.1-1ubuntu3.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for ca-certificates (20210119~20.04.1) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Removing intermediate container b85f3d12a43b
---> d1f91c3bb4bb
Step 5/5 : COPY index.html /opt
---> c47535b6da51
Successfully built c47535b6da51
Successfully tagged install-git:latest
[root@localhost suresh]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
install-git latest c47535b6da51 8 seconds ago 204MB
<none> <none> c90cbb6ca76e 4 hours ago 515MB
ubuntu latest c29284518f49 7 days ago 72.8MB
httpd latest bd29370f84ea 12 days ago 138MB
openjdk 8-jdk d61c96e2d100 3 weeks ago 514MB
hello-world latest d1165f221234 4 months ago 13.3kB
[root@localhost suresh]# docker pas -a
unknown shorthand flag: 'a' in -a
See 'docker --help'.
Usage: docker [OPTIONS] COMMAND
A self-sufficient runtime for containers
Options:
--config string Location of client config files (default "/root/.docker")
-c, --context string Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
-D, --debug Enable debug mode
-H, --host list Daemon socket(s) to connect to
-l, --log-level string Set the logging level ("debug"|"info"|"warn"|"error"|"fatal") (default "info")
--tls Use TLS; implied by --tlsverify
--tlscacert string Trust certs signed only by this CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify Use TLS and verify the remote
-v, --version Print version information and quit
Management Commands:
app* Docker App (Docker Inc., v0.9.1-beta3)
builder Manage builds
buildx* Build with BuildKit (Docker Inc., v0.5.1-docker)
config Manage Docker configs
container Manage containers
context Manage contexts
image Manage images
manifest Manage Docker image manifests and manifest lists
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
scan* Docker Scan (Docker Inc., v0.8.0)
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage Swarm
system Manage Docker
trust Manage trust on Docker images
volume Manage volumes
Commands:
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
commit Create a new image from a container's changes
cp Copy files/folders between a container and the local filesystem
create Create a new container
diff Inspect changes to files or directories on a container's filesystem
events Get real time events from the server
exec Run a command in a running container
export Export a container's filesystem as a tar archive
history Show the history of an image
images List images
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
kill Kill one or more running containers
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
restart Restart one or more containers
rm Remove one or more containers
rmi Remove one or more images
run Run a command in a new container
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
start Start one or more stopped containers
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
version Show the Docker version information
wait Block until one or more containers stop, then print their exit codes
Run 'docker COMMAND --help' for more information on a command.
To get more help with docker, check out our guides at https://docs.docker.com/go/guides/
[root@localhost suresh]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6cd3f50d4ed7 ubuntu "/bin/bash" 5 hours ago Up 5 hours 0.0.0.0:8083->8083/tcp, :::8083->8083/tcp priceless_sanderson
d721ee29be3a ubuntu "/bin/bash" 5 hours ago Created friendly_ellis
7320dd9b3370 ubuntu "bash" 6 hours ago Exited (0) 6 hours ago server
7a5549815761 ubuntu "bash" 6 hours ago Created appserver
39c22cc1cbaf httpd "httpd-foreground" 6 hours ago Up 6 hours 0.0.0.0:8080->80/tcp, :::8080->80/tcp webserver
7bf8088b0a5f httpd "httpd-foreground" 6 hours ago Up 6 hours 0.0.0.0:81->80/tcp, :::81->80/tcp suspicious_poitras
317020ee19e1 httpd "httpd-foreground" 6 hours ago Up 6 hours 0.0.0.0:82->80/tcp, :::82->80/tcp youthful_babbage
106e7c9b43b8 httpd "httpd-foreground" 6 hours ago Created suspicious_allen
99a9b3f7f56c httpd "httpd-foreground" 6 hours ago Up 6 hours 0.0.0.0:80->80/tcp, :::80->80/tcp sad_roentgen
e57a2bfc474e httpd "httpd-foreground" 6 hours ago Up 6 hours 80/tcp distracted_torvalds
d4a3a68b47a9 hello-world "/hello" 7 hours ago Exited (0) 7 hours ago hungry_satoshi
75cafc0d6fee ubuntu "bash" 9 hours ago Up 6 hours dreamy_northcutt
[root@localhost suresh]# docket build -t sureshramisetti/docker_repo .
bash: docket: command not found...
[root@localhost suresh]# docker build -t sureshramisetti/docker_repo .
Sending build context to Docker daemon 2.56kB
Step 1/5 : FROM ubuntu
---> c29284518f49
Step 2/5 : MAINTAINER Rajesh Kumar <sureshramisetti.br@gmail.com?
---> Using cache
---> 629e1f351472
Step 3/5 : RUN apt-get update
---> Using cache
---> 4ad084e71cbd
Step 4/5 : RUN apt-get install git -y
---> Using cache
---> d1f91c3bb4bb
Step 5/5 : COPY index.html /opt
---> Using cache
---> c47535b6da51
Successfully built c47535b6da51
Successfully tagged sureshramisetti/docker_repo:latest
[root@localhost suresh]# docker run sureshramisetti/docker_repo
[root@localhost suresh]# docker push sureshramisetti/docker_repo
Using default tag: latest
The push refers to repository [docker.io/sureshramisetti/docker_repo]
a1aab20d2ca6: Preparing
52df2cabd5ec: Preparing
35fd68bb561c: Preparing
a70daca533d0: Preparing
denied: requested access to the resource is denied
[root@localhost suresh]# ^C
[root@localhost suresh]# docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: sureshramisetti
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[root@localhost suresh]# docker push sureshramisetti/docker_repo
Using default tag: latest
The push refers to repository [docker.io/sureshramisetti/docker_repo]
a1aab20d2ca6: Pushed
52df2cabd5ec: Pushed
35fd68bb561c: Pushed
a70daca533d0: Mounted from library/ubuntu
latest: digest: sha256:16ea152e7ae341e7f3c5b18f6ceeb140a4415f0dc31648d20929b41fe0e8be04 size: 1160
[root@localhost suresh]# history
1 ifconfig
2 sudo yum install -y yum-utils device-mapper-persistent-data lvm2
3 docker ps -a
4 sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
5 sudo yum install –y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
6 sudo yum-config-manager --enable rhui-REGION-rhel-server-extras
7 sudo yum install -y docker-ce
8 docker ps -a
9 docker start 75cafc0d6fee
10 docker ps -a
11 docker kill 82da9c001d75
12 docker start 82da9c001d75
13 docker kill 82da9c001d75
14 docker rm 82da9c001d75
15 docker ps -a
16 docker start 79e0ca51ae30
17 docker rm 79e0ca51ae30
18 docker ps -a
19 docker pull https
20 docker pull httpd
21 docker ps -a
22 docker run -d httpd
23 docker ps -a
24 docker exec -it 75cafc0d6fee /bin/bash
25 docker ps -a
26 docker run -d -p 80:80 httpd
27 docker ps -a
28 docker attach 75cafc0d6fee
29 ls
30 history
31 docker ps -a
32 docker run -d -p 80:80 httpd
33 docker run -d -p 81:80 httpddocker run -d -p 81:80 httpd
34 docker run -d -p 82:80 httpd
35 docker run -d -p 81:80
36 docker run -d -p 81:80 https
37 docker run -d -p 81:80 httpd
38 docker ps -a
39 history
40 docker ps -a
41 docker attach 75cafc0d6fee
42 docker attach 75cafc0d6fee
43 ls
44 bash: docker: command not found
45 docker images|grep httpd
46 docker ps -a
47 docker run -d -p 8080:80 --name webserver httpd
48 docker ps -a
49 apt update
50 curl -O https://raw.githubusercontent.com/spinnaker/halyard/master/install/debian/InstallHalyard.sh
51 docker ps -a
52 docker attach 75cafc0d6fee
53 git -version
54 apt get install apache2
55 sudo bash InstallHalyard.shdocker run -it ubuntu:latest /bin/bash
56 apt-get install apache2
57 apt-get install apache2
58 apt-get install apache2
59 docker attach 75cafc0d6fee
60 docker ps -a
61 wget localhost:8080
62 docker run -d -p 8080:80 --name webserver ubuntu
63 docker run -d -p 8080:80 --name appserver ubuntu
64 docker run -d -p 8081:80 --name appserver ubuntu
65 docker run -d -p 8081:80 --name server ubuntu
66 docker ps -a
67 docker attach 75cafc0d6fee
68 git --version
69 apcahe2 -v
70 docker ps -a
71 docker version
72 docker run -it -p 8080:8080 ubuntu /bin/bash
73 docker run -it -p 8083:8083 ubuntu /bin/bash
74 apt-get install openjdk-8-jdk
75 apt update
76 sudo apt openjdk-8-jdk
77 docker run openjdk-8-jdk
78 dcoker run --help
79 docker run --help
80 docker attach 75cafc0d6fee
81 docker ps -a
82 sudo vim Dockerfile
83 FROM ubuntu
84 MAINTAINER Rajesh Kumar << rajesh@scmgalaxy.com>>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install tzdata
RUN apt-get update && apt-get install git -y && apt-get install -yq apache2
85 sudo docker build -t workdir-demo
86 docker build -t workdir-demo
87 mkdir suresh
88 cd suresh/
89 vi dockerfile
90 vi dockerfile
91 cat dockerfile
92 vi dockerfile
93 touch index.html
94 docker build -t sureshramisetti/docker_repo .
95 vi dockerfile
96 FROM ubuntu
97 MAINTAINER Rajesh Kumar <rajesh@devopsschool.com?
98 RUN apt-get update
99 RUN apt-get install git -y
100 clear
101 touch index.html
102 docker build -t install-git .
103 docker images
104 docker pas -a
105 docker ps -a
106 docket build -t sureshramisetti/docker_repo .
107 docker build -t sureshramisetti/docker_repo .
108 docker run sureshramisetti/docker_repo
109 docker push sureshramisetti/docker_repo
110 docker login
111 docker push sureshramisetti/docker_repo
112 history
[root@localhost suresh]#
https://hub.docker.com/repositories