####################
docker build -t sid_apache_php_7.3 apache/php/7.3 docker build -t sid_apache_php_7.2 apache/php/7.2 docker build -t sid_apache_php_7.1 apache/php/7.1 docker build -t sid_apache_php_7.0 apache/php/7.0 docker build -t sid_apache_fpm_7.3 apache/php-fpm/7.3 docker build -t sid_apache_fpm_7.2 apache/php-fpm/7.2 docker build -t sid_apache_fpm_7.1 apache/php-fpm/7.1 docker build -t sid_apache_fpm_7.0 apache/php-fpm/7.0 docker build -t sid_nginx_fpm_7.3 nginx/php-fpm/7.3 docker build -t sid_nginx_fpm_7.2 nginx/php-fpm/7.2 docker build -t sid_nginx_fpm_7.1 nginx/php-fpm/7.1 docker build -t sid_nginx_fpm_7.0 nginx/php-fpm/7.0
docker image ls
docker run -p 80:80 sid_apache_php_7.3 docker run -p 80:80 sid_apache_php_7.2 docker run -p 80:80 sid_apache_php_7.1 docker run -p 80:80 sid_apache_php_7.0 docker run -p 80:80 sid_apache_fpm_7.3 docker run -p 80:80 sid_apache_fpm_7.2 docker run -p 80:80 sid_apache_fpm_7.1 docker run -p 80:80 sid_apache_fpm_7.0 docker run -p 80:80 sid_nginx_fpm_7.3 docker run -p 80:80 sid_nginx_fpm_7.2 docker run -p 80:80 sid_nginx_fpm_7.1 docker run -p 80:80 sid_nginx_fpm_7.0
docker run -d -p 80:80 sid_apache_php_7.3 docker run -d -p 80:80 sid_apache_php_7.2 docker run -d -p 80:80 sid_apache_php_7.1 docker run -d -p 80:80 sid_apache_php_7.0 docker run -d -p 80:80 sid_apache_fpm_7.3 docker run -d -p 80:80 sid_apache_fpm_7.2 docker run -d -p 80:80 sid_apache_fpm_7.1 docker run -d -p 80:80 sid_apache_fpm_7.0 docker run -d -p 80:80 sid_nginx_fpm_7.3 docker run -d -p 80:80 sid_nginx_fpm_7.2 docker run -d -p 80:80 sid_nginx_fpm_7.1 docker run -d -p 80:80 sid_nginx_fpm_7.0
docker image ls docker container stop CONTAINER_ID
################################
docker login
docker tag sid_apache_php_7.2 justinhartman/cakephp3.5-php7-mysql-apache2:latest docker tag sid_apache_php_7.2 justinhartman/cakephp3.5-php7-mysql-apache2:apache-7.2 docker tag sid_apache_php_7.2 justinhartman/cakephp3.5-php7-mysql-apache2:apache-php-7.2 docker tag sid_apache_php_7.0 justinhartman/cakephp3.5-php7-mysql-apache2:apache-7.0 docker tag sid_apache_php_7.0 justinhartman/cakephp3.5-php7-mysql-apache2:apache-php-7.0 docker tag sid_nginx_fpm_7.2 justinhartman/cakephp3.5-php7-mysql-apache2:nginx-7.2 docker tag sid_nginx_fpm_7.2 justinhartman/cakephp3.5-php7-mysql-apache2:nginx-php-7.2 docker tag sid_nginx_fpm_7.0 justinhartman/cakephp3.5-php7-mysql-apache2:nginx-7.0 docker tag sid_nginx_fpm_7.0 justinhartman/cakephp3.5-php7-mysql-apache2:nginx-php-7.0
docker image ls
docker push justinhartman/cakephp3.5-php7-mysql-apache2:latest docker push justinhartman/cakephp3.5-php7-mysql-apache2:apache-7.2 docker push justinhartman/cakephp3.5-php7-mysql-apache2:apache-php-7.2 docker push justinhartman/cakephp3.5-php7-mysql-apache2:apache-7.0 docker push justinhartman/cakephp3.5-php7-mysql-apache2:apache-php-7.0 docker push justinhartman/cakephp3.5-php7-mysql-apache2:nginx-7.2 docker push justinhartman/cakephp3.5-php7-mysql-apache2:nginx-php-7.2 docker push justinhartman/cakephp3.5-php7-mysql-apache2:nginx-7.0 docker push justinhartman/cakephp3.5-php7-mysql-apache2:nginx-php-7.0
docker run -p 80:80 justinhartman/cakephp3.5-php7-mysql-apache2:latest
####################
docker stack deploy -c docker-compose.yml getstartedlab
docker service ls
docker service ps getstartedlab_web
docker stack deploy -c docker-compose.yml getstartedlab
docker stack rm getstartedlab
docker swarm leave --force
docker stack ls # List stacks or apps docker stack deploy -c # Run the specified Compose file docker service ls # List running services associated with an app docker service ps # List tasks associated with an app docker inspect # Inspect task or container docker container ls -q # List container IDs docker stack rm # Tear down an application docker swarm leave --force # Take down a single node swarm from the manager
##################
docker-compose up
docker-compose up -d
docker-compose stop
docker-compose down --volumes
docker-compose up -f docker-compose.debug.yml
docker-compose up -p sid_apache_php_7.3
docker-compose -f php/apache/7.2/docker-compose.yml pull db
##################
docker swarm init
docker swarm join
docker-machine create --driver virtualbox myvm1 docker-machine create --driver virtualbox myvm2
docker-machine ls
docker-machine ssh myvm1 "docker swarm init --advertise-addr "
docker-machine ssh myvm2 "docker swarm join --token :2377"
docker-machine ssh myvm1 "docker node ls"