Docker

Using bootBuildImage with a private Docker repository on Windows 10

怎甘沉沦 提交于 2021-02-20 04:46:07
问题 I am trying to use bootBuildImage on Windows 10 (Docker is running in WSL2 mode) and when I set up in build.gradle group = "repo.trajano.net" bootBuildImage { builder = "${project.group}/${project.name}" } I found a couple of things that look incorrect d:\dh\template-ms>gradlew bootBuildImage > Task :bootBuildImage FAILED Building image 'docker.io/library/template-ms:latest' > Pulling builder image 'repo.trajano.net/template-ms:latest' ..................................................

Connecting to Docker container from host

别说谁变了你拦得住时间么 提交于 2021-02-20 04:37:45
问题 I just pulled and run the official Docker MySQL image and have it running locally on my machine: docker run --name mydb -e MYSQL_ROOT_PASSWORD=12345 -d mysql:5.7.11 The instructions on that screen tell you how to connect to the MySQL server (container) from inside yet another container (which is configured as a command-line client). But I have a generic JDBC fat client (SQuirreL) and am wondering how to connect to my docker container. For the JDBC connection string, I need to provide both a

Jwilder nginx proxy - 503 after docker compose structure update

北城以北 提交于 2021-02-20 04:17:05
问题 I'm using jwilder/nginx-proxy with separate docker-compose.yaml . It looks like this: proxy: image: jwilder/nginx-proxy restart: always volumes: - /var/run/docker.sock:/tmp/docker.sock:ro - ./nginx/conf.d/proxy.conf:/etc/nginx/conf.d/proxy.conf:ro - /Users/marcin/Docker/local_share/certificates:/etc/nginx/certs:ro ports: - "80:80" - "443:443" container_name: proxy I'm using it for quite a long time and it's working fine when my project docker-compose.yaml looks like this: web: build: /Users

Docker takes a very long time to start MacOS

怎甘沉沦 提交于 2021-02-20 04:00:46
问题 Sometimes on my Mac the Docker takes a very long time to start. I tried to reboot the machine than restart docker one more time and for the first couple times it helped, now even reboot can't help to start docker 回答1: Here is the cure, just press enter after this command screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty 回答2: Change memory allocation for docker desktop Click on >> Docker desktop icon >> Preferences [ Add CPU 2 and memory 2.0 GB] 来源: https://stackoverflow.com

UnicodeEncodeError : 'ascii' codec can't encode character u'\xd7' while saving and accessing Jupyter notebook

北城余情 提交于 2021-02-20 03:55:07
问题 I am running a Django(Python 2.7) application with IPython notebook in a docker container and for some notebook, while accessing I am getting Error of An unknown error occurred while loading this notebook when I check logs it's showing Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1415, in _execute result = yield result File "/usr/local/lib/python2.7/dist-packages/tornado/gen.py", line 870, in run value = future.result() File "/usr/local

I have mysql and apache superset setup on dockers and connected by a bridge network, what will theSQLAlchemy URI be?

为君一笑 提交于 2021-02-20 03:49:36
问题 I pulled the official superset image: git clone https://github.com/apache/incubator-superset.git then added the MYSQL Client to requirements.txt cd incubator-superset touch ./docker/requirements-local.txt echo "mysqlclient==1.4.6" >> ./docker/requirements-local.txt docker-compose build --force-rm docker-compose up -d After which I made the MYSQL Container docker run --detach --network="incubator-superset_default" --name=vedasupersetmysql --env="MYSQL_ROOT_PASSWORD=vedashri" --publish 6603

I have mysql and apache superset setup on dockers and connected by a bridge network, what will theSQLAlchemy URI be?

浪子不回头ぞ 提交于 2021-02-20 03:49:18
问题 I pulled the official superset image: git clone https://github.com/apache/incubator-superset.git then added the MYSQL Client to requirements.txt cd incubator-superset touch ./docker/requirements-local.txt echo "mysqlclient==1.4.6" >> ./docker/requirements-local.txt docker-compose build --force-rm docker-compose up -d After which I made the MYSQL Container docker run --detach --network="incubator-superset_default" --name=vedasupersetmysql --env="MYSQL_ROOT_PASSWORD=vedashri" --publish 6603

I have mysql and apache superset setup on dockers and connected by a bridge network, what will theSQLAlchemy URI be?

梦想与她 提交于 2021-02-20 03:48:16
问题 I pulled the official superset image: git clone https://github.com/apache/incubator-superset.git then added the MYSQL Client to requirements.txt cd incubator-superset touch ./docker/requirements-local.txt echo "mysqlclient==1.4.6" >> ./docker/requirements-local.txt docker-compose build --force-rm docker-compose up -d After which I made the MYSQL Container docker run --detach --network="incubator-superset_default" --name=vedasupersetmysql --env="MYSQL_ROOT_PASSWORD=vedashri" --publish 6603

03、Docker Compose入门

眉间皱痕 提交于 2021-02-20 03:25:37
简介: Compose 是 Docker 公司推出的一个工具软件,可以管理多个 Docker 容器组成一个应用。你需要定义一个 YAML 格式的配置文件 docker-compose.yml ,写好多个容器之间的调用关系。然后,只要一个命令,就能同时启动/关闭这些容器。 # 启动所有服务 $ docker-compose up # 关闭所有服务 $ docker-compose stop 安装: Mac 和 Windows 在安装 docker 的时候,会一起安装 docker compose。Linux 系统下的安装参考 官方文档 查看是否安装成功: $ docker-compose --version 使用: 一份标准的docker-compose.yml文件应该包含version、services、networks三大部分,其中最关键的就是services和networks两个部分. docker运行命令转换成docker-compose.yml实例 docker命令执行2个镜像: docker run -d -p 9020:9020 --sysctl net.core.somaxconn=4096 registry.leyantech.com/infra/wp-api docker run -d -p 88:80 registry.leyantech.com/infra

Portainer实战

拜拜、爱过 提交于 2021-02-20 02:57:52
Portainer是一个轻量级的Docker环境管理UI,可以管理docker host和docker swarm(我主要看中了能管理swarm这个,毕竟市面上能管理swarm的平台不多)。之所以说是轻量级的,是因为部署只有一个container,也可以使用二进制程序直接部署,不像rancher的部署,部署了一大堆container,而且portainer是跨平台的,windows和linux都可以部署,废话不多说,直接开干.... 环境 ubuntu16.04-1 swarm manager portainer ubuntu16.04-2 swarm works portainer agent ubuntu16.04-3 swarm works portainer agent ps:环境还是之前文章的swarm集群环境 部署 独立容器启动 docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /path/on/host/data:/data portainer/portainer ps:portainer的数据存储在容器内部的/data目录,这样容器重启的时候数据会丢失,所以要确保数据持久化 docker run -d