Last active
April 28, 2021 12:33
-
-
Save costa86/0042ff441077cced851eeb188752668f to your computer and use it in GitHub Desktop.
Set-ProfileForDocker.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#code $PROFILE (or another editor) | |
#add these changes | |
function Up-DockerCompose() { | |
docker-compose up | |
} | |
function Up-DockerComposeD() { | |
docker-compose up -d | |
} | |
function Down-DockerCompose() { | |
docker-compose down | |
} | |
function Show-DockerImages() { | |
docker images | |
} | |
function Remove-DockerStoppedContainers() { | |
docker container prune | |
} | |
function Remove-DockerAll() { | |
docker system prune | |
} | |
Set-Alias dcu Up-DockerCompose | |
Set-Alias dcud Up-DockerComposeD | |
Set-Alias dcd Down-DockerCompose | |
Set-Alias di Show-DockerImages | |
Set-Alias c cls | |
Set-Alias l ls | |
Set-Alias dcp Remove-DockerStoppedContainers | |
Set-Alias dsp Remove-DockerAll | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment