Skip to main content

Updating

Removing Current Containers and Images

docker stop microservice-sekolah && docker rm microservice-sekolah

Removing Images

docker image rm shadowbane/microservice-pmb-school:latest

Re-run the container

docker run \
  --name microservice-sekolah \
  -e OCTANE_SERVER=swoole\
  -e APP_KEY=base64:pQ5RRwUuTRaOdkESrBActaiTXB0qOpvVPxkb4u07GvY= \
  -e APP_DEBUG=false \
  -e DB_CONNECTION=mysql \
  -e DB_HOST=HOST_IP \
  -e DB_PORT=HOST_PORT \
  -e DB_DATABASE=DATABASE \
  -e DB_USERNAME=dbuser \
  -e DB_PASSWORD=dbpass \
  -p 8000:8000 \
  shadowbane/microservice-pmb-school:latest