Skip to content

Instantly share code, notes, and snippets.

@ArgonQQ
Last active September 24, 2019 11:12
Show Gist options
  • Save ArgonQQ/baa503d246f3066b19a20042eb809e98 to your computer and use it in GitHub Desktop.
Save ArgonQQ/baa503d246f3066b19a20042eb809e98 to your computer and use it in GitHub Desktop.

Revisions

  1. ArgonQQ revised this gist Sep 24, 2019. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions Docker-Cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,21 @@
    # eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    # (If you pass several arguments, they are first joined with spaces between them.)
    eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    (If you pass several arguments, they are first joined with spaces between them.)
    eval $(docker-machine env)

    # Stop all docker container
    ## Stop all docker container
    docker stop $(docker ps -a -q)

    # Delete all docker container
    ## Delete all docker container
    docker rm $(docker ps -a -q)

    # Delete all images
    ## Delete all images
    docker rmi $(docker images -q)

    # show Volume Mounts
    ## show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    # Removes all Volumes
    ## Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)

    # Updates all Images
  2. ArgonQQ renamed this gist Sep 24, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. ArgonQQ renamed this gist Jan 22, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. ArgonQQ renamed this gist Jan 22, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. ArgonQQ revised this gist Dec 18, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -15,11 +15,11 @@ docker rmi $(docker images -q)
    # show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    #Removes all Volumes
    # Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    # Updates all Images
    docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull

    #Bash Completion
    # Bash Completion
    curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
  6. ArgonQQ revised this gist Dec 18, 2016. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,15 @@
    # (If you pass several arguments, they are first joined with spaces between them.)
    eval $(docker-machine env)

    # stop all docker container
    # Stop all docker container
    docker stop $(docker ps -a -q)

    # rm all docker container
    # Delete all docker container
    docker rm $(docker ps -a -q)

    # Delete all images
    docker rmi $(docker images -q)

    # show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

  7. ArgonQQ revised this gist Jul 4, 2016. 1 changed file with 0 additions and 22 deletions.
    22 changes: 0 additions & 22 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,22 +0,0 @@
    eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    (If you pass several arguments, they are first joined with spaces between them.)
    ### eval $(docker-machine env)

    stop all docker container
    ### docker stop $(docker ps -a -q)

    rm all docker container
    ### docker rm $(docker ps -a -q)

    show Volume Mounts
    ### docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    Removes all Volumes
    ### docker volume rm $(docker volume ls -qf dangling=true)

    Updates all Images
    ### docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull

    Bash Completion
    ### curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
  8. ArgonQQ revised this gist Jul 4, 2016. 1 changed file with 16 additions and 16 deletions.
    32 changes: 16 additions & 16 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -1,22 +1,22 @@
    # eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    # (If you pass several arguments, they are first joined with spaces between them.)
    eval $(docker-machine env)
    eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    (If you pass several arguments, they are first joined with spaces between them.)
    ### eval $(docker-machine env)

    # stop all docker container
    docker stop $(docker ps -a -q)
    stop all docker container
    ### docker stop $(docker ps -a -q)

    # rm all docker container
    docker rm $(docker ps -a -q)
    rm all docker container
    ### docker rm $(docker ps -a -q)

    ### show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    show Volume Mounts
    ### docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    #Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)
    Removes all Volumes
    ### docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull
    Updates all Images
    ### docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull

    #Bash Completion
    curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
    Bash Completion
    ### curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
  9. ArgonQQ revised this gist Jul 4, 2016. 1 changed file with 22 additions and 0 deletions.
    22 changes: 22 additions & 0 deletions Readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    # eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    # (If you pass several arguments, they are first joined with spaces between them.)
    eval $(docker-machine env)

    # stop all docker container
    docker stop $(docker ps -a -q)

    # rm all docker container
    docker rm $(docker ps -a -q)

    ### show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    #Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull

    #Bash Completion
    curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
  10. ArgonQQ revised this gist Jun 24, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,7 @@ docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull
    docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull

    #Bash Completion
    curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose
  11. ArgonQQ revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    docker images | awk '{print $3}'|grep -v "IMAGE" |xargs -L1 docker pull
    docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull
  12. ArgonQQ revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    docker images | awk '{print $1}' | grep -v REPOSITORY | xargs -L1 docker pull
    docker images | awk '{print $3}'|grep -v "IMAGE" |xargs -L1 docker pull
  13. ArgonQQ revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,4 @@ docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    docker volume rm $(docker volume ls -qf dangling=true)

    #Updates all Images
    docker images | awk '{print $1}' | xargs -L1 docker pull
    docker images | awk '{print $1}' | grep -v REPOSITORY | xargs -L1 docker pull
  14. ArgonQQ revised this gist Jun 8, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -15,5 +15,5 @@ docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    #Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)

    #Update all Images
    #Updates all Images
    docker images | awk '{print $1}' | xargs -L1 docker pull
  15. ArgonQQ revised this gist Jun 8, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,7 @@ docker rm $(docker ps -a -q)
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    #Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)
    docker volume rm $(docker volume ls -qf dangling=true)

    #Update all Images
    docker images | awk '{print $1}' | xargs -L1 docker pull
  16. ArgonQQ revised this gist Apr 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    # (If you pass several arguments, they are first joined with spaces between them.)
    eval $(docker-machine env)
  17. ArgonQQ revised this gist Apr 20, 2016. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,15 @@
    #Will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # Will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line.
    # (If you pass several arguments, they are first joined with spaces between them.)
    eval $(docker-machine env)

    #stop all docker container
    # stop all docker container
    docker stop $(docker ps -a -q)

    #rm all docker container
    # rm all docker container
    docker rm $(docker ps -a -q)

    #show Volume Mounts
    # show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    #Removes all Volumes
  18. ArgonQQ revised this gist Apr 20, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    #Will set the variable to use Docker without the need to start "Docker Quickstart Terminal"
    eval $(docker-machine env)

    #stop all docker container
    docker stop $(docker ps -a -q)

  19. ArgonQQ revised this gist Apr 20, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,7 @@ docker stop $(docker ps -a -q)
    docker rm $(docker ps -a -q)

    #show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME

    #Removes all Volumes
    docker volume rm $(docker volume ls -qf dangling=true)
  20. ArgonQQ revised this gist Apr 20, 2016. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,8 @@
    #stop all docker container
    docker stop $(docker ps -a -q)

    #rm all docker container
    docker rm $(docker ps -a -q)
    docker rm $(docker ps -a -q)

    #show Volume Mounts
    docker inspect -f '{{ .Mounts }}' CONTAINERNAME
  21. ArgonQQ created this gist Apr 15, 2016.
    4 changes: 4 additions & 0 deletions Docker-Cheatsheet
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #stop all docker container
    docker stop $(docker ps -a -q)
    #rm all docker container
    docker rm $(docker ps -a -q)