Skip to main content

How to clear all the Docker containers from a single command.?

The following line of command help you clear the all the docker containers including currently running and also which are  in the exited status too

docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)

                                                          OR


docker rm --force $(docker ps -a -q)

Comments

Popular posts from this blog

How to configure Drupal7, varnish, authcache2 and ESI in Nginx server?

This is step by step procedure for, how to configure the authcache, varnih and ESI for the drupal7 project in NGINX erver. To configuring the Nginx Server use the procedure from document " http://www.geoffstratton.com/2014/03/nginx-php-fpm-apc-ssl-drupal/ " Well, make sure your nginx server is up and running. 1.Configuring the Authcache module.      Download the module from https://www.drupal.org/project/authcache    Enable only the authcache module    Go to admin/reports/status , then you can see the Authcache area is red and saying that there is no back end has been configured.   2.Configure Varnish on the back-end[nginx server].     Using the Following commands,       $ curl http://repo.varnish-cache.org/debian/GPG-key.txt | sudo apt-key add -     $ echo "deb http://repo.varnish-cache.org/ubuntu/ precise varnish-3.0" | sudo tee -a /etc/apt/sources.list     $ sudo apt-get update ...

Drush php in Acquia Cloud Site factory

Recently I ran into a situation where I need to add some conditions in Acquia Cloud Site Factory, factory - hooks to find out the ACSF site name. To evaluate those lines of code, I need to use Drush php  https://drushcommands.com/drush-8x/core/core-cli/ How to get the ACSF site name ? $ drush php --uri=site1.example.acsitefactory.com >>> global $_acsf_site_name >>> echo $_acsf_site_name site1⏎

How to enable clean URL for Drupal 8 in NGINX server?[Drupal 8 + NGINX + Clean url + Drupal7]

Well I was wondering from last couple of hours how to enable the clean url for drupal8 in my local nginx server. It is also works for drupal 7. Its very simple do edit the " /etc/nginx/sites-available/default " , Please type the following command on terminal. $ sudo gedit /etc/nginx/sites-available/default And search for the line text " try_files $uri $uri/ =404 " under location/ server configuration area and comment it . Then add these lines to below that, as like              location/ {                ..........                ............                #try_files $uri $uri/ =404; <============= You need to comment this line                expires max;        try_files $uri $uri/ @rewrite;               ...