docker 客戶端測試網絡連通的問題

Redis 連接


docker pull hub.c.163.com/library/redis:latest



docker run --name test-redis -d hub.c.163.com/library/redis:latest



docker exec -it test-redis redis-cli -h 172.16.182.1 -p 6379

>> 輸入 : auth  密碼


PgSql 客戶端

docker pull hub.c.163.com/library/postgres:




docker run --name test-postgres -e POSTGRES_PASSWORD=pass -d hub.c.163.com/library/postgres:latest


docker exec -it test-postgres -h 127.0.0.1 -p 5432 -d shushangyun -U root  -W



BusyBox 連接

docker pull busybox


docker run -it --network=xx-net  --name test-busybox --rm busybox

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章