Docker

How to Find Groupid and Artifactid in Nexus3 OSS?

冷暖自知 提交于 2021-02-11 16:27:30
问题 I am new to Nexus3 Artifact & I am trying to pull Docker image from nexus using ansible-playbook. For reference here I am adding ansible script: - name: Pull Docker image maven_artifact: group_id: ubuntu artifact_id: ubuntu verify_checksum: always extension: docker version: 3.8.1 repository_url: 'http://localhost:1839' username: admin password: ***** dest: /tmp/python.docker P.S. i dont know what to give for artifactid and groupid 来源: https://stackoverflow.com/questions/61096940/how-to-find

Building two differently tagged docker images with docker-compose

≯℡__Kan透↙ 提交于 2021-02-11 16:01:31
问题 I am currently on the way to deploy a java application with Docker and K8s. As I am using a Raspberry Pi Kubernetes Cluster I want to generate two images, one for the x86 plattform, and one for the arm32v7 (for testing on the Raspberry cluster). The goal is to generate two differently tagged docker images with one Dockerfile and push the resulting images to Docker Hub. I use the following Dockerfile. FROM openjdk:8-alpine as x86 RUN mkdir -p /usr/src/app COPY project/generated/distributions

cannot connect to mongodb container host

泄露秘密 提交于 2021-02-11 15:43:50
问题 im trying to connect to a mongodb container, but it does not work, does not recognize the host. this is my docker-compose.yml file with the service: version: '3' services: mongodb: build: context: . dockerfile: docker/mongodb/Dockerfile restart: always environment: DATABASE: database USERNAME: user PASSWORD: pass ports: - '5100:27017' volumes: - ./data/db:/data/db This is my dockerfile for mongodb: FROM mvertes/alpine-mongo:4.0.5-0 ENV MONGO_INITDB_DATABASE: ${DATABASE} ENV MONGO_INITDB_ROOT

Using the same Docker image file permissions differ from machine to machine

旧街凉风 提交于 2021-02-11 15:41:09
问题 I have a problem, that I cannot grasp at all. I'm running my Jenkins pipeline in a Docker container on the master node. Now I added another node and want to run the pipeline there as well. However, using the same image I get different file permissions in the container: ### master > docker image ls node:10.20.1-stretch REPOSITORY TAG IMAGE ID CREATED SIZE node 10.20.1-stretch c5f1efe092a0 13 days ago 912MB > docker run --rm -ti -u 1000:1000 node:10.20.1-stretch ls -la /home/node total 20 drwxr

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.

Having trouble accessing /dev/serial0 on a Raspi from within a Module in Azure IoT Edge

試著忘記壹切 提交于 2021-02-11 15:31:34
问题 I'm trying to set up a Module which will interact with /dev/serial0 on a Raspberry Pi B+ running Raspian Stretch. I've used dtoverlay=pi3-miniuart-bt in /boot/config.txt to restore UART0/ttyAMA0 to GPIOs 14 and 15 (which is what my Raspi-based HW needs me to do). I have attempted to make that device accessible to the Module using the following Container Create Options: { "HostConfig": { "PortBindings": { "1880/tcp": [ { "HostPort": "1880" } ] }, "Privileged": true, "Devices": [ { "PathOnHost"

Docker Registry使用:公有Docker Registry使用、私有Docker Registry的搭建

浪尽此生 提交于 2021-02-11 15:28:33
公有Docker Registry的操作 首先必须注册自己的dockerhub账号,假设为simpledockerhub [root@localhost ]# docker login --默认即https://hub.docker.com Username : simpledockerhub Password: ***** Login Succeeded [root@localhost ]# docker pull hello-world [root@localhost ]# docker tag hello-world simpledockerhub/hello-world [root@localhost ]#docker push simpledockerhub/hello-world ------注意 /前面的名称必须是用户注册的用户名。 这样就把hello-world镜像上传到simpledockerhub用户下,使用docker pull命令就可以下载该镜像了 私有Docker Registry的搭建 1. 单机版:只能通过localhost操作(个人玩玩还行) [root@localhost ]# docker run -d -p 5000:5000 registry:2 [root@localhost ]# docker tag hello-world

Unable to create an object of type 'DatabaseContext'. For the different patterns supported at design time error

夙愿已清 提交于 2021-02-11 15:15:40
问题 I'm using sqlserver2017 in docker in ubuntu os create asp.netcore 3 web app error in run dotnet ef add migrations firstmigrate Unable to create an object of type 'DatabaseContext'. For the different patterns supported at design time, 回答1: Had similar problem after adding own DbContext constructor with (2) parameters. App was ok, but migrations stopped working. Your looks similar - in case you do not need DatabaseContext constructor, try to remove it ... There is a build and DI running behind

Best option to access network share in docker windows container with Docker Compose

不问归期 提交于 2021-02-11 15:02:28
问题 I am new to docker, so please bear with my naive questions. We are trying to host a dot net application in a Windows container. We were successful in hosting the application in the container. However, the application is accessing the network share like \\machinename\abc. We tried to create a volume of type "NFS" but looks like that does not work well in Windows container(How to directly mount NFS share/volume in container using docker compose v3). volumes: example: driver: local driver_opts:

Can't connect to other containers inside docker network

巧了我就是萌 提交于 2021-02-11 15:02:03
问题 I have a few containerized projects I would like to talk to each other into a network called 'dev_network'. I would expect to be able to start up both containers and be able to ping them from inside the containers.. E.g. I should be able to ping foo from bar , but I cannot. root@75cba11f489c:/# ping bar ping: bar: Name or service not known These projects live in separate folders , but I would like them to connect to the same network and be able to talk to each other. Here's a simple