Sign inSign up

arifwn/php

By arifwn

Updated over 4 years ago

Image
0

517

arifwn/php 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

Size

165.6 MB

Last updated

over 4 years ago

docker pull arifwn/php:8.0-apache