kill the first docker container in docker ps

docker kill $(docker ps -q)
Useful when developing and you donut usually have other docker commands running
Sample Output
 2018-05-24 15:06:10 ? |ruby-2.4.1| Jim-Park-MacBook-Pro in ~/workspace/example
±  |master ?| ? docker kill $(docker ps -q)

By: jim80net
2018-05-24 22:11:06

What Others Think

The instruction here is to kill the first docker in the container in docker ps as a title of the blog post. This scheme or pattern will be useful when you are running another commands and review of the development in some kind of the aspects.
Aliceckaness · 35 weeks and 1 day ago
Command line FU is a website that is sharing the post of kill the first docker container in the docker PS. This is very useful when developing and the donut usually have the docker command running as Wigs Canada set up for sample output that has issued in the form of link as well.
cemefixek · 33 weeks and 1 day ago
Patel and panel have been instilled in the room for the success of the people. All the issues of the persons and">Minecraft Server Hosting Reviews is done or the flow of the things for the candidates.
bonyh · 29 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: