Skip to content

Commit

Permalink
Merge pull request #69 from brhahlen/improve-dc-ips-should-support-mu…
Browse files Browse the repository at this point in the history
…ltiple-ips

Improve dc ips should support multiple ips
  • Loading branch information
brhahlen authored Jun 20, 2024
2 parents 1505218 + 295d57c commit 5d00ca7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 3.4.1
## Improvement
- `dc ips` supports multiple ips - #68

# Version 3.4.0
## New Feature
- `dc shell <container>` to get a shell
Expand Down
9 changes: 3 additions & 6 deletions build-files/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Version 3.4.0
## New Feature
- `dc shell <container>` to get a shell

## Removal
- Removed `network` command
# Version 3.4.1
## Improvement
- `dc ips` supports multiple ips - #68
4 changes: 2 additions & 2 deletions dc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
set -m

# VERSION
export DC_VERSION=v3.4.0
export DC_VERSION=v3.4.1

###### VARIABLES
if [[ -z "${DC_DIR}" ]]; then
Expand Down Expand Up @@ -692,7 +692,7 @@ function shell(){
# IPS
function ips(){
printf "Showing IPs \n"
(echo "CONTAINER IP-ADRESS MAC-ADDRESS"; docker inspect --format='{{.Name}} {{range .NetworkSettings.Networks}}{{.IPAddress}} {{.MacAddress}}{{end}}' "$(docker ps -aq)"| sort -k 2 -V) | column -t -s ' '
(echo "CONTAINER IP-ADRESS MAC-ADDRESS"; docker inspect --format='{{.Name}} {{range .NetworkSettings.Networks}}{{.IPAddress}} {{.MacAddress}} | {{end}}' $(docker ps -aq)| sort -k 2 -V) | column -t -s ' '
}

function prune() {
Expand Down
2 changes: 1 addition & 1 deletion dc-completion
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2022 - 2023 Ben Hählen
# This is the completion file for `dc`
##############
# Version 3.4.0
# Version 3.4.1
##############
_dc_completions()
{
Expand Down

0 comments on commit 5d00ca7

Please sign in to comment.