Skip to content

Instantly share code, notes, and snippets.

View phersho's full-sized avatar
😎

Fernando Camacho phersho

😎
View GitHub Profile
@phersho
phersho / containers.ps1
Last active April 21, 2026 21:18
Helpful functions to work with containers.
docker build `
--no-cache --rm `
--secret id=secret_nme,env=ENVIRONMENT_VARIABLE `
--tag "$(Get-GitPromptShortSummary)" `
. #--file Dockerfile
docker run --detach `
--publish 8080:08 `
--name "$(Get-ContainerNameFromGit)"