Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
Talk:Docker
(view source)
Revision as of 21:00, 10 August 2022
8 bytes added
,
21:00, 10 August 2022
→use of jq to get and use info
Line 152:
Line 152:
list all Network and Gateway
list all Network and Gateway
−
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[]'
+
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[]'
−
{
+
{
−
"Subnet": "172.17.0.0/16",
+
"Subnet": "172.17.0.0/16",
−
"Gateway": "172.17.0.1"
+
"Gateway": "172.17.0.1"
−
}
+
}
−
{
+
{
−
"Subnet": "172.18.0.0/16",
+
"Subnet": "172.18.0.0/16",
−
"Gateway": "172.18.0.1"
+
"Gateway": "172.18.0.1"
−
}
+
}
list all subnet
list all subnet
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[].Subnet'
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[].Subnet'
Line 173:
Line 173:
"172.18.0.1"
"172.18.0.1"
from there we could check if all the network are indeed in db network of SME
from there we could check if all the network are indeed in db network of SME
−
== usefull command for users ==
== usefull command for users ==
Unnilennium
Super Admin, Wiki & Docs Team,
Bureaucrats
,
Interface administrators
,
Administrators
3,254
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search