Sign inSign up

arifwn/wordpress

By arifwn

Updated about 4 years ago

Image
0

1.8K

arifwn/wordpress repository overview

Wordpress Docker Image

Includes commonly used php extensions.

Build

  • docker build -t arifwn/wordpress:8.0-apache ./wordpress-php8.0
  • docker build -t arifwn/wordpress:8.0-apache-slim ./wordpress-php8.0-slim
  • docker push arifwn/wordpress
  • docker build -t arifwn/php:8.0-apache ./php8.0
  • docker push arifwn/php

Run

  • cli from kubectl
    • kubectl --kubeconfig=./kube_config_cluster.yml exec <pod name> -- /bin/bash
  • cli from docker
    • docker exec -i container_name su - www-data -s /bin/sh -c "cd /var/www/html; /bin/bash"
  • run wp as www-data:
    • su www-data -s /bin/sh -c "wp shell"
  • run wp-cli image: sudo docker run -it --rm
    --volumes-from container_id
    --network container:container_id
    arifwn/wordpress:cli /bin/bash

Tag summary

Content type

Image

Digest

sha256:0fa756d65

Size

282.4 MB

Last updated

about 4 years ago

docker pull arifwn/wordpress:7.4-apache