Docker helper command list

Magento Community edition username password


Magento default user

pa the password is ‘bitnami1‘

Docker helper command list


docker-compose up -d

docker-compose start

docker-compose stop

docker-sync start

docker-compose run deploy bash

docker-compose --verbose run deploy bash

docker-compose ps

setup:di:compile

docker exec -ti f28sad7asduasd bash

docker inspect fdwerwer

docker ps fdwerwer

docker ps -a

docker volume prune

Restart from scratch



docker-compose down -v


composer install

vendor\bin\ece-tools docker:build


docker-compose up -d


docker-compose run build cloud-build


docker-compose run deploy cloud-deploy

Clean Docker environment


Clean fully


docker-compose down -v


docker volume prune

docker container prune

docker image prune

docker-compose start


Creating module



Php bin/magento module:enable –all

php magento setup:upgrade

Creating page



php bin/magento module:enable –all

Php bin/magento setup:upgrade

php bin/magento module:status

php bin/magento module:enable

Php bin/magento module:disable Learning_HelloPage

Php bin/magento setup:di:compile


Magento Command



composer magento setup:di:compile

composer bin/magento cache:flush

composer install

composer update

composer clear cache






Build


Build an image from the Dockerfile in the
current directory and tag the image
docker build -t myimage:1.0 .


List all images that are locally stored with

the Docker Engine
docker image ls


Delete an image from the local image


docker image ls


Delete an image from the local image store


docker image rm alpine:3.4

Docker Management


app* Docker Application
assemble* Framework-aware builds (Docker Enterprise)
builder Manage builds
cluster Manage Docker clusters (Docker Enterprise)
config Manage Docker configs
context Manage contexts
engine Manage the docker Engine
image Manage images
network Manage networks
node Manage Swarm nodes
plugin Manage plugins
registry* Manage Docker registries
secret Manage Docker secrets
service Manage services
stack Manage Docker stacks
swarm Manage swarm
system Manage Docker
template* Quickly scaffold services (Docker Enterprise)
trust Manage trust on Docker images
volume Manage volumes
DOCKER RUN

Run a container from the Alpine version 3.9
image, name the running container
“web” and expose port 5000 externally,
mapped to port 80 inside the container.
docker container run –name web -p
5000:80 alpine:3.9


Stop a running container through SIGTERM
docker container stop web


Stop a running container through SIGKILL
docker container kill web


List the networks
docker network ls

Run


List the running containers (add –all to
include stopped containers)

docker container ls


Delete all running and stopped containers
docker container rm -f $(docker ps -aq)


Print the last 100
lines of a container’s logs

docker container
logs –tail 100 web


docker container ls
Delete all running and stopped containers


docker container rm -f $(docker ps -aq)


Print the last 100
lines of a container’s logs


docker container
logs –tail 100 web

Comments

Popular posts from this blog

Best PHP comment DockBlock !

How to fix pgDump dbeaver ?