Changes

From SME Server
Jump to navigationJump to search
1,135 bytes added ,  20:59, 10 August 2022
no edit summary
Line 135: Line 135:     
</syntaxhighlight>{{Warning box|You cannot set options in daemon.json that have already been set on daemon startup as a flag. On systems that use systemd to start the Docker daemon, -H is already set, so you cannot use the hosts key in daemon.json to add listening addresses. See “custom Docker daemon options” for how to accomplish this task with a systemd drop-in file.}}
 
</syntaxhighlight>{{Warning box|You cannot set options in daemon.json that have already been set on daemon startup as a flag. On systems that use systemd to start the Docker daemon, -H is already set, so you cannot use the hosts key in daemon.json to add listening addresses. See “custom Docker daemon options” for how to accomplish this task with a systemd drop-in file.}}
 +
 +
 +
==use of jq to get and use info ==
 +
list all networks id
 +
# docker network ls|awk '(NR!=1) {print $1 }'
 +
823d8b3f95b5
 +
7a659867acde
 +
8dc3ef802bb3
 +
226506b91494
 +
list all network names
 +
# docker network ls|awk '(NR!=1) {print $2 }'
 +
bridge
 +
dockeronly_default
 +
host
 +
none
 +
 +
list all Network and Gateway
 +
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[]'
 +
{
 +
  "Subnet": "172.17.0.0/16",
 +
  "Gateway": "172.17.0.1"
 +
}
 +
{
 +
  "Subnet": "172.18.0.0/16",
 +
  "Gateway": "172.18.0.1"
 +
}
 +
list all subnet
 +
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[].Subnet'
 +
"172.17.0.0/16"
 +
"172.18.0.0/16"
 +
list all Gateway
 +
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[]'|jq ".Gateway"
 +
"172.17.0.1"
 +
"172.18.0.1"
 +
# docker network inspect `docker network ls|awk '(NR!=1) {print $1 }'`|jq '.[].IPAM.Config[].Gateway'
 +
"172.17.0.1"
 +
"172.18.0.1"
 +
from there we could check if all the network are indeed in db network of SME
 +
 +
 +
== usefull command for users ==
 +
connect to a container with bash invite
 +
docker exec -it onlyoffice bash
 +
    
== sources ==
 
== sources ==
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu