Wordpress Command Data
Wordpress Command Data
ubuntu@myfirstVM:~$ sudo su -
root@myfirstVM:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wordpress latest b2fdb8162049 2 days ago 685MB
root@myfirstVM:~# $ docker run --name some-wordpress -p 8080:80 -d wordpress
$: command not found
root@myfirstVM:~# $ docker run --name some-wordpress -p 8080:80 -d wordpress
$: command not found
root@myfirstVM:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root@myfirstVM:~# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
wordpress latest b2fdb8162049 2 days ago 685MB
root@myfirstVM:~# $ docker run --name some-wordpress -p 8080:80 -d wordpress
$: command not found
root@myfirstVM:~# $ docker run --name some-wordpress -p 8080:80 -d wordpress
$: command not found
root@myfirstVM:~# docker run --name some-wordpress -p 8080:80 -d wordpress
3a38bd31b406eb2cf80d1ee6ab78ec24ac7591335de36781e30adb2613c44f8a
root@myfirstVM:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
3a38bd31b406 wordpress "docker-entrypoint.s…" 8 seconds ago Up 7 seconds
0.0.0.0:8080->80/tcp, :::8080->80/tcp some-wordpressroot@myfirstVM:~# docker run
--name mywordpress -p 8080:80 -d myordpress
Unable to find image 'myordpress:latest' locally
docker: Error response from daemon: pull access denied for myordpress, repository
does not exist or may require 'docker login': denied: requested access to the
resource is denied.
See 'docker run --help'.
root@myfirstVM:~# docker run --name mywordpress -p 8080:80 -d myordpress
Unable to find image 'myordpress:latest' locally
docker: Error response from daemon: pull access denied for myordpress, repository
does not exist or may require 'docker login': denied: requested access to the
resource is denied.
See 'docker run --help'.
root@myfirstVM:~# docker run --name mywordpress -p 8080:80 -d wordpress
docker: Error response from daemon: Conflict. The container name "/mywordpress" is
already in use by container
"ba0cb7daa4969d4cd822efddba3141b0e37b9cfbde9f9533ce54705772ea81b3". You have to
remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
root@myfirstVM:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
3a38bd31b406 wordpress "docker-entrypoint.s…" 9 minutes ago Up 9 minutes
0.0.0.0:8080->80/tcp, :::8080->80/tcp some-wordpress
root@myfirstVM:~# curl ifconfig.me
20.6.128.175root@myfirstVM:~# curl http://localhost:8080
root@myfirstVM:~# docker logs 3a
WordPress not found in /var/www/html - copying now...
Complete! WordPress has been successfully copied to /var/www/html
AH00558: apache2: Could not reliably determine the server's fully qualified domain
name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this
message
AH00558: apache2: Could not reliably determine the server's fully qualified domain
name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this
message
[Sat Jun 08 07:08:20.776792 2024] [mpm_prefork:notice] [pid 1] AH00163:
Apache/2.4.59 (Debian) PHP/8.2.20 configured -- resuming normal operations
[Sat Jun 08 07:08:20.777065 2024] [core:notice] [pid 1] AH00094: Command line:
'apache2 -D FOREGROUND'
172.17.0.1 - - [08/Jun/2024:07:19:32 +0000] "GET / HTTP/1.1" 302 235 "-"
"curl/7.68.0"
root@myfirstVM:~#
root@myfirstVM:~#
root@myfirstVM:~#
root@myfirstVM:~# ls
snap
root@myfirstVM:~# git clone [email protected]:aslamdoctor/docker-wordpress.git
Cloning into 'docker-wordpress'...
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM.
Are you sure you want to continue connecting (yes/no/[fingerprint])? y
Please type 'yes', 'no' or the fingerprint: yes
Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known
hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.