docker-machine

no django app created when following the docker-compose tutorial

你。 提交于 2021-02-18 22:01:19
问题 I'm following the docker-compose tutorial, to try and figure out how to get a django app to deploy: http://docs.docker.com/compose/django/ And everything's going smoothly (the app even works!) but the django project folder composeexample isn't created in my local project directory. I'm left with a working "It Works!" page after running: $ docker-compose run web django-admin.py startproject composeexample . But I can't continue to edit the composeexample/settings.py , as the tutorial suggests:

docker compose up working fine but browser showing site can't be reached

有些话、适合烂在心里 提交于 2021-02-17 07:02:39
问题 docker-compose up showing this: Recreating tutorial_product-service_1 ... Recreating tutorial_product-service_1 ... done Attaching to tutorial_product-service_1 product-service_1 | * Running on http://0.0.0.0:80/ (Press CTRL+C to quit) product-service_1 | * Restarting with stat product-service_1 | * Debugger is active! product-service_1 | * Debugger PIN: 192-693-276 and my docker-compose.yml version: '3' services: product-service: container_name: tutorial_product-service_1 build: ./product

On windows machine I get error : No matching manifest for windows/amd64

孤街醉人 提交于 2021-02-11 15:37:33
问题 I am new to docker , recently I have installed docker on my windows 10 machine(amd/64). But while using below link I am getting issues. https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images?view=aspnetcore-3.1 As per above link if I try to use image pull command : FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build I get below error : No matching manifest for windows/amd64 10.0.17134 in the manifest list entries I tried below steps to resolve this : 1.

How to change the Docker image installation directory on Mac?

守給你的承諾、 提交于 2021-02-09 10:57:34
问题 Docker images are stored in $HOME/Library/Containers/com.docker.docker/Data but how to move those large files to an external drive for example? I have tried symbolic link, it didn't work. Also I couldn't find the -g option for docker as mentioned here. Any suggestions? 回答1: All you have to do is go to preferences Then Disk and click at "move disk image" Select the folder you want to move to, awaits it completes and you are done. 来源: https://stackoverflow.com/questions/40467032/how-to-change

How to change the Docker image installation directory on Mac?

为君一笑 提交于 2021-02-09 10:57:00
问题 Docker images are stored in $HOME/Library/Containers/com.docker.docker/Data but how to move those large files to an external drive for example? I have tried symbolic link, it didn't work. Also I couldn't find the -g option for docker as mentioned here. Any suggestions? 回答1: All you have to do is go to preferences Then Disk and click at "move disk image" Select the folder you want to move to, awaits it completes and you are done. 来源: https://stackoverflow.com/questions/40467032/how-to-change

Docker Host Security - Can container run dangerous code or change host from inside of a container?

落爺英雄遲暮 提交于 2021-02-07 12:14:18
问题 Lets say I pull a new image from a hub repository and run it without looking at the contents of the dockerfile. Can the container or image affect my host in any way possible? Please let me know because I will be running a list of images from a user inputted image names on my server. I am worried if it will affect the server/host. 回答1: With a default execution of an image, the answer is a conditional no. The kernel capabilities are limited, the filesystem is restricted, the process space is

Docker Host Security - Can container run dangerous code or change host from inside of a container?

北慕城南 提交于 2021-02-07 12:12:21
问题 Lets say I pull a new image from a hub repository and run it without looking at the contents of the dockerfile. Can the container or image affect my host in any way possible? Please let me know because I will be running a list of images from a user inputted image names on my server. I am worried if it will affect the server/host. 回答1: With a default execution of an image, the answer is a conditional no. The kernel capabilities are limited, the filesystem is restricted, the process space is

Docker Host Security - Can container run dangerous code or change host from inside of a container?

你离开我真会死。 提交于 2021-02-07 12:10:57
问题 Lets say I pull a new image from a hub repository and run it without looking at the contents of the dockerfile. Can the container or image affect my host in any way possible? Please let me know because I will be running a list of images from a user inputted image names on my server. I am worried if it will affect the server/host. 回答1: With a default execution of an image, the answer is a conditional no. The kernel capabilities are limited, the filesystem is restricted, the process space is

Reset Docker Machine to run Docker commands on my local machine

三世轮回 提交于 2021-02-04 13:47:05
问题 I'm learning docker right now and I have run into something that's confusing. I started using docker-machine , which was great for creating a local VM and spinning up a server on Digital Ocean. However, I now want to return to a state where the docker commands execue on my local machine so that I can add features, build, and push my docker repo. I know how to change to other machines using docker-machine env , but how do I go back to having no active machine? If I restart docker this happens,

connect to mysql container from another container

依然范特西╮ 提交于 2021-01-27 04:22:10
问题 I'm trying to connect to a mysql container from within another container on the same network specified by a compose file. version: "2" services: web: build: context: . dockerfile: nginx/Dockerfile ports: - "8080:80" volumes: - ./data:/srv php: build: context: . dockerfile: php-fpm/Dockerfile volumes: - ./data:/srv mysql: image: mysql environment: - MYSQL_ALLOW_EMPTY_PASSWORD=yes - MYSQL_USER=dummy_user - MYSQL_PASSWORD=12345 I'm not really sure what the connection parameters would be if I'm