docker-machine

Change docker storage driver on Mac OS X

我的未来我决定 提交于 2019-12-01 19:51:36
问题 I installed the docker toolbox on my Mac OS X and I need to change the docker storage driver from aufs to devicemapper , because aufs causing problems. I found the offical documentations of docker and tried it the way explained here, but DOCKER_OPTS="--storage-driver=devicemapper" doesn't work for me. docker info still tells me Storage Driver: aufs . I didn't managed to find the file located at /etc/default/docker as well. For the record, I need to changed it in order to run CodeClimate CLI

gcloud docker push reliability

£可爱£侵袭症+ 提交于 2019-12-01 19:03:08
问题 I have been having a lot of problems pushing images with gcloud docker push over the past few weeks. I've read through the many stack overflow discussions and github issues and workarounds but I haven't come across a solution to the inconsistency yet. Typically I will attempt to push a container image or two. The first push will almost always fail with the following retry-until-timeout output: I can only get around it with gcloud auth login . At most 5 minutes later I will attempt to push a

How to connect with JMX from host to Docker container in Docker machine?

随声附和 提交于 2019-12-01 17:29:10
问题 When I have running Docker container directly at my host, it is possible to connect to it without any problems. My host has network 192.168.1.0/24 and IP address of the host is 192.168.1.20. My Docker container has IP address 172.17.0.2. When I connect to 172.17.0.2:1099 from jconsole it works. When I put this service into Docker machine, it is not possible to connect to it. My Docker machine has IP 192.168.99.100 and container in it has IP address 172.17.0.2 but when I use jconsole to

Docker run script in host on docker-compose up

99封情书 提交于 2019-12-01 16:39:49
thank you for watching this question. So my question relates to best practices on how to run a script on a docker-compose up directive. Currently i'm sharing a volume between host and container to allow for the script changes to be visible to both host and container. Similar to a watching script polling for changes on configuration file. The script has to act on host on changes according to predefined rules. So my question is: How could I start this script on a docker-compose up directive or even from the dockerfile of the service, so that whenever the container goes up the "watcher" can find

docker Swarm mode集群

让人想犯罪 __ 提交于 2019-12-01 16:36:14
/*--> */ /*--> */ 基本概念 Swarm 是使用 SwarmKit 构建的 Docker 引擎内置(原生)的集群管理和编排工具。 使用 Swarm 集群之前需要了解以下几个概念。 节点 运行 Docker 的主机可以主动初始化一个 Swarm 集群或者加入一个已存在的 Swarm 集群, 这样这个运行 Docker 的主机就成为一个 Swarm 集群的节点 ( node ) 。 节点分为管理 ( manager ) 节点和工作 ( worker ) 节点。 管理节点用于 Swarm 集群的管理, docker swarm 命令基本只能在管理节点执行(节点退出 集群命令 docker swarm leave 可以在工作节点执行)。一个 Swarm 集群可以有多个管理节 点,但只有一个管理节点可以成为 leader , leader 通过 raft 协议实现。 工作节点是任务执行节点,管理节点将服务 ( service ) 下发至工作节点执行。管理节点默认 也作为工作节点。你也可以通过配置让服务只运行在管理节点。 来自 Docker 官网的这张图片形象的展示了集群中管理节点与工作节点的关系。 服务和任务 任务 ( Task )是 Swarm 中的最小的调度单位,目前来说就是一个单一的容器。 服务 ( Services ) 是指一组任务的集合,服务定义了任务的属性

Docker run script in host on docker-compose up

一世执手 提交于 2019-12-01 16:02:18
问题 thank you for watching this question. So my question relates to best practices on how to run a script on a docker-compose up directive. Currently i'm sharing a volume between host and container to allow for the script changes to be visible to both host and container. Similar to a watching script polling for changes on configuration file. The script has to act on host on changes according to predefined rules. So my question is: How could I start this script on a docker-compose up directive or

What is exactly happening when you're Docker Commiting a container?

南楼画角 提交于 2019-12-01 11:29:09
问题 I know that when you use, for example, docker commit abcdefgh ola/minhaimagem:1.0 you are saving your changes from the abcdefgh container into a new image to use it again futurely. However, i noticed that sometimes the commit runs very slow and that fact arised the question in my mind, what does exactly is happening while the commit is running? I mean, what is happening under the hood? 回答1: As mentioned in docker commit: By default, the container being committed and its processes will be

Docker + Ubuntu + Virtualbox: “volumes” directive in dockerfile not working

寵の児 提交于 2019-12-01 03:40:36
问题 Docker + Ubuntu + Virtualbox: "volumes" directive in dockerfile not working? See the solution below. 回答1: Just testing Docker here and already in front an issue: the "volumes" directive in dockerfile seems like not working in Ubuntu -- OK in Mac and Windows. All the proccess with docker-machine and docker-compose alright and the environment ups, but the filesystem without the sharing folders. After trying MANY things and a lot of researching with my pals, we found this issue in GitHub: "Add

Is there a way to add a hostname to an EXISTING docker container?

瘦欲@ 提交于 2019-12-01 01:19:18
I have some containers that communicate via their IP from the network docker. I can use the option -h or --hostname when running a new container but I want to set the hostname for existing container. Is it possible? Youssouf Maiga One way is to create network and add different container in this network. When adding container in the network, you can use the --alias option of docker network . Like this: Create a network: docker network create <my-network-name> Add containers in the network: docker network connect --alias <hostname-container-1> <my-network-name> <container-1> docker network

Docker Django 404 for web static files, but fine for admin static files

浪子不回头ぞ 提交于 2019-11-30 20:46:37
please help me on this docker django configuration for serving static files. my Django project running on Docker got some issues with delivering static files . All static files for admin view is loading fine, but static files for client web view is throwing 404 Not found Error. This is my docker.yml configuration details: web: build: ./web expose: - "8000" links: - postgres:postgres volumes: - ./web:/usr/src/app ports: - "8000:8000" env_file: .env command: python manage.py runserver 0.0.0.0:8000 postgres: image: postgres:latest volumes: - /var/lib/postgresql ports: - "5432:5432" update This is