'127.0.0.1', 61613, 60 ??
Connection refused
ip route list
default via 172.17.0.1 dev eth0
172.17.0.0/16 dev eth0 scope link src 172.17.0.2
docker inspect $CONTAINER_ID | jq '.[0].NetworkSettings.Networks'
{
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "e1f4d0d3d2270bb31fa6a90828c0ddef440d44641fda333bde6d5cd2680829d7",
"EndpointID": "4bc49bce0177bc20f675dfbc2b9ad60299b3b75b56d7b6cc25f67abbf2733e7e",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
MONGODB_IMAGE=mongo:4.4.6-bionic
MONGODB_CONTAINER=mongodb
docker pull $IMAGE
docker container rm $CONTAINER
docker run -d -e MONGO_INITDB_DATABASE=db --name $MONGODB_CONTAINER $MONGODB_IMAGE
FASTAPI_IMAGE=fastapi-test
FASTAPI_CONTAINER=fastapi-test
docker build -f Dockerfile -t $FASTAPI_IMAGE .
docker run --link $MONGODB_CONTAINER -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin -e MONGO_INITDB_DATABASE=db -e DATABASE_URL=mongodb://admin:admin@mongodb:27017/db --name $FASTAPI_CONTAINER -p 8000:8000 -it $FASTAPI_IMAGE
MONGODB_IMAGE=mongo:4.4.6-bionic
MONGODB_CONTAINER=mongodb
docker pull $IMAGE
docker container rm $CONTAINER
docker run -d -e MONGO_INITDB_DATABASE=db --name $MONGODB_CONTAINER $MONGODB_IMAGE
FASTAPI_IMAGE=fastapi-test
FASTAPI_CONTAINER=fastapi-test
docker build -f Dockerfile -t $FASTAPI_IMAGE .
docker run --link $MONGODB_CONTAINER -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=admin -e MONGO_INITDB_DATABASE=db -e DATABASE_URL=mongodb://admin:admin@mongodb:27017/db --name $FASTAPI_CONTAINER -p 8000:8000 -it $FASTAPI_IMAGE
# The command to start nginx when starting the container
CMD [ "nginx" , "-g" , "daemon off;" , "php-fpm" , "mysql-server" ]
# The command to start nginx when starting the container
CMD [ "nginx" , "-g" , "daemon off;" , "php-fpm" , "mysql-server" ]
# The command to start nginx when starting the container
CMD [ "nginx" , "-g" , "daemon off;" , "php-fpm" , "mysql-server" ]
пользуюсь для входа в физическую машину у которой эркан рабзит вдребезги и нельзя интерактивно загрузиться (по ссш можно но клянусь я туда по ссш не хожу