0% found this document useful (0 votes)
57 views

Wordpress Command Data

Uploaded by

Malik Haziq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Wordpress Command Data

Uploaded by

Malik Haziq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

ubuntu@myfirstVM:/home$ cd

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.

Please make sure you have the correct access rights


and the repository exists.
root@myfirstVM:~# ls
snap
root@myfirstVM:~# git clone [email protected]:aslamdoctor/docker-wordpress.git
Cloning into 'docker-wordpress'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights


and the repository exists.
root@myfirstVM:~# ls
snap
root@myfirstVM:~# mkdir docker-wordpress
root@myfirstVM:~# cd docker-wordpress/
root@myfirstVM:~/docker-wordpress# git init
Initialized empty Git repository in /root/docker-wordpress/.git/
root@myfirstVM:~/docker-wordpress# ls
root@myfirstVM:~/docker-wordpress# ll
total 12
drwxr-xr-x 3 root root 4096 Jun 8 07:28 ./
drwx------ 5 root root 4096 Jun 8 07:28 ../
drwxr-xr-x 7 root root 4096 Jun 8 07:28 .git/
root@myfirstVM:~/docker-wordpress# git clone https://github.com/aslamdoctor/docker-
wordpress.git
Cloning into 'docker-wordpress'...
remote: Enumerating objects: 63, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 63 (delta 29), reused 50 (delta 16), pack-reused 0
Unpacking objects: 100% (63/63), 9.50 KiB | 748.00 KiB/s, done.
root@myfirstVM:~/docker-wordpress# ls
docker-wordpress
root@myfirstVM:~/docker-wordpress# cd ..
root@myfirstVM:~# ls
docker-wordpress snap
root@myfirstVM:~# cd docker-wordpress/
root@myfirstVM:~/docker-wordpress# ls
docker-wordpress
root@myfirstVM:~/docker-wordpress# cd docker-wordpress/
root@myfirstVM:~/docker-wordpress/docker-wordpress# ls
README.md config docker-compose.yml traefik
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker-compose up -d
[+] Running 68/38
✔ wp-cli 15 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
27.7s
✔ db 10 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
32.9s
✔ phpmyadmin 18 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
26.9s
✔ wordpress 21 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
35.1s

network traefik declared as external, but could not be found


root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
3a38bd31b406 wordpress "docker-entrypoint.s…" 23 minutes ago Up 23 minutes
0.0.0.0:8080->80/tcp, :::8080->80/tcp some-wordpress
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
3a38bd31b406 wordpress "docker-entrypoint.s…" 23 minutes ago Up 23
minutes 0.0.0.0:8080->80/tcp, :::8080->80/tcp some-wordpress
ba0cb7daa496 b2fdb8162049 "docker-entrypoint.s…" 38 minutes ago Created
mywordpress
f5593f97a1a9 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (0)
2 hours ago peaceful_rubin
be9cd4ecbdb5 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (0)
2 hours ago confident_franklin
287165ba8c24 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (2)
2 hours ago angry_lederberg
92a456adcae5 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (0)
2 hours ago gifted_hypatia
root@myfirstVM:~/docker-wordpress/docker-wordpress# ls
README.md config docker-compose.yml traefik
root@myfirstVM:~/docker-wordpress/docker-wordpress# ls -al
total 36
drwxr-xr-x 5 root root 4096 Jun 8 07:29 .
drwxr-xr-x 4 root root 4096 Jun 8 07:29 ..
-rw-r--r-- 1 root root 362 Jun 8 07:29 .env
drwxr-xr-x 8 root root 4096 Jun 8 07:29 .git
-rw-r--r-- 1 root root 36 Jun 8 07:29 .gitignore
-rw-r--r-- 1 root root 2375 Jun 8 07:29 README.md
drwxr-xr-x 2 root root 4096 Jun 8 07:29 config
-rw-r--r-- 1 root root 2101 Jun 8 07:29 docker-compose.yml
drwxr-xr-x 2 root root 4096 Jun 8 07:29 traefik
root@myfirstVM:~/docker-wordpress/docker-wordpress# nano .env
root@myfirstVM:~/docker-wordpress/docker-wordpress# ls
README.md config docker-compose.yml traefik
root@myfirstVM:~/docker-wordpress/docker-wordpress# nano docker-compose.yml

Use "fg" to return to nano.

[1]+ Stopped nano docker-compose.yml


root@myfirstVM:~/docker-wordpress/docker-wordpress# docker-compose down
validating /root/docker-wordpress/docker-wordpress/docker-compose.yml:
services.wordpress.labels must be a mapping
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps\
> ^C
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
3a38bd31b406 wordpress "docker-entrypoint.s…" 30 minutes ago Up 30 minutes
0.0.0.0:8080->80/tcp, :::8080->80/tcp some-wordpress
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker stop 3a
3a
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker rm 3a
3a
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
PORTS NAMES
ba0cb7daa496 b2fdb8162049 "docker-entrypoint.s…" 47 minutes ago Created
mywordpress
f5593f97a1a9 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (0)
2 hours ago peaceful_rubin
be9cd4ecbdb5 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (0)
2 hours ago confident_franklin
287165ba8c24 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (2)
2 hours ago angry_lederberg
92a456adcae5 b2fdb8162049 "docker-entrypoint.s…" 2 hours ago Exited (0)
2 hours ago gifted_hypatia
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker rm $(docker ps -aq)
ba0cb7daa496
f5593f97a1a9
be9cd4ecbdb5
287165ba8c24
92a456adcae5
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
phpmyadmin latest 0b7dab116f7f 33 hours ago 562MB
wordpress latest b2fdb8162049 2 days ago 685MB
mysql 8 fcd86ff8ce8c 5 weeks ago 578MB
wordpress php8.0-apache bc823df9ead2 6 months ago 667MB
wordpress cli-2.6.0-php7.4 a532f8dec63b 20 months ago 148MB
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker rmi $(docker images -aq)
Untagged: phpmyadmin:latest
Untagged:
phpmyadmin@sha256:512a596a35a2b2865e3d710e5349f930165d40dac97e0e7a5129a6807c599ab2
Deleted: sha256:0b7dab116f7f293e6333f63a2bb915dc018b2c3bcfe3e06a1806f0b6c5cd511a
Deleted: sha256:b5c10226b8fa02a1a8bd078991d31205e355b28473ec2d5ab24f430f2a360937
Deleted: sha256:8788698e30c58368cb1ba43724ef8aae3e61bbf7cad30b06c0d22053af4883c1
Deleted: sha256:6a189215f95291cd1e1b86cd3e02b00d6ce4df2dde64c95635c71612db42b65d
Deleted: sha256:08332ef96b308a5775b036164db8e62fe646bea6f7c7bd0534b371b91c77c9c4
Deleted: sha256:2c60196efa83cc7eea292845db4801f00f48dfddb1fdb0bbd4798d31c602a4af
Untagged: wordpress:latest
Untagged:
wordpress@sha256:3e68901c0367f0d8ca5af613ee596a7b10193576a193d6a8ce6d6d2d7df32f2f
Deleted: sha256:b2fdb816204947f016527d3b6d53f1f28a67801421c3e7902dbc0dec97f46820
Deleted: sha256:f7b0c89de80f80d66e304ef99753eed18f8e9d47a596477050ef590ba27abf8e
Deleted: sha256:3cac0c69d50aa787aa91fcfa77965c0489ff9696e20b03a105436d260ebd636a
Deleted: sha256:dfcf4a3324f8042a339ce1ce23217e566f863d1525d5c084056894bfdf41636d
Deleted: sha256:ace68fa2d1dd44de3fd7310b2190b4c32cc260691f9062dd133909d770fe1a78
Deleted: sha256:e5dba1a12e176508ec9187d5684629a951836c17ce68c427fdcbb4fb424b1ce4
Deleted: sha256:ab638975ec8684d9b032dabbcae563c97232ca4941b0b8de98d3af98e3a92478
Deleted: sha256:a9e5e32e57dfa586b9b668141465e6cd69c258e6602ee323eb5672f9a315f302
Deleted: sha256:908abc7843afeed784c1298e34e2ab3b015f2d6776b0109683cd60ffe03f4077
Deleted: sha256:31a97ade9bcc6537b351eb08f8881f9cfb9bfd938dade622564a89ff68c1f8ce
Deleted: sha256:71f1b3775aedc9689fdb17741d4587f629e5723b15a9b959b66ee4ef65cff0fa
Deleted: sha256:ba1dcf6893a047b8110b037e6b0a68255749165c4afcd7b6714805b0ecf72d77
Deleted: sha256:2121d59199b1067216a21dd1a44be8ecd5ddc706c4d82f045b681ddfc5e69b6a
Deleted: sha256:997969717ea83ffb0f66e0c1d482b81165b234a14b268ffc5d04261ba0683a8f
Deleted: sha256:327219508b79610681c14d581c1edce5dcb06ab0a026cadfc9cfaa935e9f807c
Deleted: sha256:d700ba334af64b7d9e5e4f398695e54591172038596d68df1ad49d9ef3193362
Deleted: sha256:bd1ca1112454c7564fd93b2f61537ba7a4eba1136fc78d7fed533e7ad4f34f15
Deleted: sha256:87ee6327dc3aa71cae0fff76278a8d0c3eb828e2d624d8b18de092ff841b3c7f
Deleted: sha256:3d24f832b1a3f695aeab79c51d1941850b01adc26cc0e2e60c92009279c6b6ab
Deleted: sha256:879fa38d47bcc11920de17dc6973bfda2635e1b1d44e506c9502a36ca2f056e4
Deleted: sha256:988bebd5d3f4d8a7fc4dfcccabbc284cdc697b60e0a9a0d1b6aed48b775bdeca
Deleted: sha256:5d4427064ecc46e3c2add169e9b5eafc7ed2be7861081ec925938ab628ac0e25
Untagged: mysql:8
Untagged:
mysql@sha256:aa021e164da6aacbefc59ed0b933427e4835636be380f3b6523f4a6c9564e1f0
Deleted: sha256:fcd86ff8ce8c2d30f02607e184cbfd73eb581e22a451e4a1847a102318bc2926
Deleted: sha256:0473b1cea4a7e4fd89e77021d9bd0072d9fe8e88bfa7b2ceb4938374dc89cc72
Deleted: sha256:cec8ab251255c88df5a1765571d8d5b3f6f124f5c74da94669df8d69a712bba5
Deleted: sha256:1ec27ee04d25505ec12280cda84841c553e26d007d453d05afad31f91ab42c79
Deleted: sha256:a927878056aed598dadbb50c1c5d8f8b973f6bceb3562b2168346f93bc033416
Deleted: sha256:7cc2dba4d94e1ea28f8e85d457316210d2188afb659888168d1bc3e63204ba23
Deleted: sha256:63d0771032fba062bf73f65afd1d24e0948db53d5e721e46eb85af062dedfd62
Deleted: sha256:9031ef0ca7a6fa1f7051740d8342cc875feea831fc7cc95ccf931fdf8123c23f
Deleted: sha256:e8af93b4c6fe9b15c33180ed63c16a2174ba1a36680bb961fc78c80a9961fece
Deleted: sha256:b7e9107eb2df7323cdf4126ecb94412f1067730600e1c49b54cf22b765f86484
Deleted: sha256:0e2e8dd6d8eb63eedba9435b25b3d4c3036f9508f45fe608986efd8ac274f2a8
Untagged: wordpress:php8.0-apache
Untagged:
wordpress@sha256:824689613b4e7b027d0d36f264a53a159d6c7adcf5250539e56efe2940651e19
Deleted: sha256:bc823df9ead26b4d62d58c89802917b34101c9d98c2b82a5949190fb732df35e
Deleted: sha256:f9070200da1430f9a0e869a6cecc0b92495821ac813e077a1a9fda2abb2e6840
Deleted: sha256:b16261b3cabe1652758952067f4f09dacf666a6941feff793a9af53b4e9ca15e
Deleted: sha256:53d1262129bc74e9bb56a3ac1869dbb3ed928a29b196e6cb309bdbea65016e9a
Deleted: sha256:3f4ac772efd051b4685ae35e85b7d89678911b72cd97a82f5c83fa9b9e876b16
Deleted: sha256:621e3b959c4a90e7ae500c1433d547292be92a5c7eee8dfbbc1c730b54db6ef9
Deleted: sha256:0e0af94db09ca14bca0e7e5c0677fcddd036ca18bcd1dd03496829deb2263629
Deleted: sha256:bbec5e5cef218344e92fe3f7311a06749b74c15cc36393e8c62a7d0587ea0f74
Deleted: sha256:57d7d552076be4d6a83838a158d85c7e823970061126a6e1573f4f0ebe813620
Deleted: sha256:33fe10428e9bd1cc5b209711e7cbf5e499f59b0eaff074d04a97c9b320c56c9c
Deleted: sha256:6cbbbf1a6b13fe01c5538b54ed3ddb2fac19e1983c1221b46cee7e8a9a553cff
Deleted: sha256:fd201062b568d22d8eaacab2b2cccf34978765c4c37a54d209983eec8002beb1
Deleted: sha256:8db61c36eb2ca3fc6fd54b7f5532a7105d9d437425edd7e2b8b9bcd42caaf5bd
Deleted: sha256:a1df85c234f4a9bcab83fc864c7c3c1e73e3ece21b0fae1e9f7dc5430c5d7655
Deleted: sha256:f35cb0b78b6264cfcf722f11249b85af6fbf8b43aa8daea7e9e4f1e1b02f193f
Deleted: sha256:d6c4ba5c180c39c6843ab56baffa275ca0392f73526f73339bd6506b492cf7fc
Deleted: sha256:832952c717b6a64cb5e0badbc2442974aca86ddeefdee776e75a29ff01987ea3
Deleted: sha256:039060943bb20f0d06346f233f093cc91a641a00377c294848fe11b53b080b1a
Deleted: sha256:81f4d7704aaf358499051ba841934972eec86bf46856b8eed9f59250e41fcf58
Deleted: sha256:8cb46fb33f1eca9b35afb914837dbb707520ee5840e1345e5d29a6dde7d3d1e1
Deleted: sha256:2a5b525063d620d4ed8cb9ba53b5e3b2c359016022350331b4b6150d947d1a05
Deleted: sha256:1b6fd3ad4ce602924fffb84437331a255e2a9463531a1bd92a15e9e3c4d11523
Untagged: wordpress:cli-2.6.0-php7.4
Untagged:
wordpress@sha256:c253f3b5043a6414e2d93a2ee5ddb1021d82e67c84c7d050d11c08accd627859
Deleted: sha256:a532f8dec63b9697b49c64fc971f470700d2b9b2db7e29a8bf4886c57d0aa415
Deleted: sha256:484420541d7e3608f9f169797c82f90804ad7630d624ea1e0c9558c45ec18f1e
Deleted: sha256:df266043e8954b683a1430e8bbbe3932b2040b9f4b661a1883e6d8cef90f4f3e
Deleted: sha256:9782ef69e4b1f44837102451bec184c0d904d9f9d8cfaba790ec3bbcb2c67252
Deleted: sha256:2034a43dca827d9c6c6842eaaeff0bc9e8cd7799129110ac7c7c3d84c3595b0d
Deleted: sha256:72bc1258cc74579b02e371e0e9b06356175f87be0d7aa813403dff3576892181
Deleted: sha256:e383b476d35a077674a642435df190a7ce026b396de531f3935ef803a2ab8cc0
Deleted: sha256:e9611b373511a9a6d5448795e1fe2916dda401d2e02d9fd491dee093a83ffc50
Deleted: sha256:4245eaadfd3377b06d3ce5a0c864582d7ee947fb2cc0e025e989a8ff43493ff6
Deleted: sha256:f14fd0b8ccb531ef7e3c900308dafac64706cf98f1debd370a76c5f18f9e97d0
Deleted: sha256:c539aee31537268aeec5558a35cdcfd417645c4788c4895f7c721de3a4b5b702
Deleted: sha256:2cda2a6b1bd4cbdc18ea62c75102b3668bece912d5d41bf685bcc75e12f22c06
Deleted: sha256:922f6bd0ebdb1b72e03fb89efe4e65dbaa98e2b6f48eda06af1259d8774eaaa2
Deleted: sha256:7a46fb0d6478f25b78ce90011d22411590ce31d4cc29eec6b88fa546e976046c
Deleted: sha256:f15ae3bf4a96cf59b7f0a07f9e9f308a0e2f8ca41450425212593ff42f82d0fa
Deleted: sha256:994393dc58e7931862558d06e46aa2bb17487044f670f310dffe1d24e4d1eec7
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
root@myfirstVM:~/docker-wordpress/docker-wordpress# ls
README.md config docker-compose.yml traefik
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker-compose up -d
validating /root/docker-wordpress/docker-wordpress/docker-compose.yml:
services.wordpress.labels must be a mapping
root@myfirstVM:~/docker-wordpress/docker-wordpress# ls
README.md config docker-compose.yml traefik
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker-compose up -d
validating /root/docker-wordpress/docker-wordpress/docker-compose.yml:
services.wordpress.labels must be a mapping
root@myfirstVM:~/docker-wordpress/docker-wordpress# nano docker-compose.yml
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker-compose up -d
WARN[0000] The "TRAEFIK_ROUTE" variable is not set. Defaulting to a blank string.
WARN[0000] The "SITE_URL" variable is not set. Defaulting to a blank string.
WARN[0000] The "TRAEFIK_ROUTE" variable is not set. Defaulting to a blank string.
[+] Running 68/14
✔ phpmyadmin 18 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
42.2s
✔ wp-cli 15 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
30.9s
✔ db 10 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
36.9s
✔ wordpress 21 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿] 0B/0B Pulled
39.7s

[+] Running 6/6


✔ Network docker-wordpress_backend Created
0.1s
✔ Volume "docker-wordpress_db_data" Created
0.0s
✔ Container docker-wordpress-db-1 Started
0.1s
✔ Container phpmyadmin_pma Started
0.1s
✔ Container docker-wordpress-wordpress-1 Started
0.1s
✔ Container docker-wordpress-wp-cli-1 Started
0.1s
root@myfirstVM:~/docker-wordpress/docker-wordpress# docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
3326ad2d0b2d phpmyadmin:latest "/docker-entrypoint.…" 4 minutes ago
Up 4 minutes 0.0.0.0:6060->80/tcp, :::6060->80/tcp phpmyadmin_pma
8eccff32ed6a wordpress:php8.0-apache "docker-entrypoint.s…" 4 minutes ago
Up 4 minutes 80/tcp docker-wordpress-wordpress-1
4d1db9a80cab mysql:8 "docker-entrypoint.s…" 4 minutes ago
Up 4 minutes 3306/tcp, 33060/tcp docker-wordpress-db-1
root@myfirstVM:~/docker-wordpress/docker-wordpress# ^C
root@myfirstVM:~/docker-wordpress/docker-wordpress# ^C
root@myfirstVM:~/docker-wordpress/docker-wordpress# ^C
root@myfirstVM:~/docker-wordpress/docker-wordpress# curl ifconfig.me
20.6.128.175root@myfirstVM:~/docker-wordpress/docker-wordpress#

You might also like