Docker Tingkat Menengah
Mike Metzger
Data Engineering Consultant
docker run -v <host directory>:<container directory>-v ~/hostdata:/containerdatacompose.yamlservices: resource: name: resource1 # Bagian bernama volumes volumes:- <host directory>:<container directory> # Contoh: - ~/hostdata:/containerdata
docker run --network <networkname>
docker run --network net1Di resource compose.yaml
services: resource: name: resource1 networks:network_name: # Contoh: net1:
docker run -p hostport:containerport-p 8000:8000compose.yamlservices: resource: name: resource1 ports:- hostport:containerport # Contoh: - 8000:8000
docker inspect <id / name>Mounts: info data yang di-mountNetworkSettings: info jaringanNetworkSettings:Networks: detail koneksi jaringan Docker "Config": {
"Mounts": [...]
...
"Networks": {
"network1": {
...



Docker Tingkat Menengah