Docker network related research & configuration commands

at first

Make a note of network-related commands that you always forget

Research

Investigate the network group to which a specific container belongs

docker inspect --format '{{ .NetworkSettings.Networks }}' [Container name]

Investigate the internal IP address of a specific container

docker inspect --format '{{ .NetworkSettings.Networks.[Affiliation network group name].IPAddress }}' [Container name]

Configuration

Add network group to specific container

docker network connect [Network group] [Container name]

Recommended Posts

Docker network related research & configuration commands
Docker related commands (notes for yourself)
Docker basic commands
Docker terms and commands
Docker Frequently used commands
Docker network (personal memorandum)
Docker Compose basics and commands