38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
root@docker:~# docker network ls
|
|
NETWORK ID NAME DRIVER SCOPE
|
|
686ee7b7a074 bridge bridge local
|
|
cdea694fc9ad dockge_default bridge local
|
|
ecac792b2998 host host local
|
|
ad588c406203 jellyfin_default bridge local
|
|
7851b5889a4e mealie_default bridge local
|
|
ac7d41d8a7ec none null local
|
|
5b85a298149a pgadmin_default bridge local
|
|
|
|
root@docker:~# bridge link
|
|
9: vethbbcbbc7@if8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br-5b85a298149a state forwarding priority 32 cost 2
|
|
11: vetha18f304@if10: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br-ad588c406203 state forwarding priority 32 cost 2
|
|
15: veth400a90a@if14: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br-cdea694fc9ad state forwarding priority 32 cost 2
|
|
21: vethc9534c9@if20: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br-7851b5889a4e state forwarding priority 32 cost 2
|
|
23: veth7e06b85@if22: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master br-7851b5889a4e state forwarding priority 32 cost 2
|
|
|
|
docker exec -it mealie sh
|
|
|
|
troubleshooting network:
|
|
docker run -it --net container:postgres nicolaka/netshoot
|
|
|
|
https://www.youtube.com/watch?v=bKFMS5C4CG0&t=1s
|
|
https://www.youtube.com/watch?v=5grbXvV_DSk&t=1s
|
|
|
|
The Docker daemon socket, usually located at /var/run/docker.sock, is used for communication between the Docker client and the Docker daemon. The Docker daemon manages Docker containers and images, while the Docker client is used to issue commands to the daemon.
|
|
|
|
Step 1:
|
|
Create docker group if not exist : sudo groupadd docker
|
|
|
|
Step 2:
|
|
Add user to docker group : sudo usermod -aG docker ${USER}
|
|
|
|
Step 3:
|
|
Change docker.sock to new permission : sudo chmod 666 /var/run/docker.sock
|
|
|
|
Step 4:
|
|
Finally restart docker daemon service : sudo systemctl restart docker |