Skip to main content

Questions tagged [docker]

Docker images, containers, hub, and everything related to the containerization platform

Filter by
Sorted by
Tagged with
0 votes
1 answer
22 views

Moving a file (with encrypted token) after building a docker on Jenkins

I have a project with NextJS and I build it using Jenkins. I run my app inside a docker container, and pull my code from Github. In my local project, I have a git-ignored file named .sentrylirc that ...
TheUnreal's user avatar
  • 101
0 votes
3 answers
5k views

docker image push does not work

I have created a new docker image with a # docker build -t my-phpapache:7.4 . Now, when I try to make # docker image push I'm logged in to a Docker hub in a browser. I see the errors: $ docker image ...
Taras's user avatar
  • 105
0 votes
1 answer
7k views

How can I run apt-get update and apt-get upgrade commands automatically?

I have a docker container where I run a few commands as a root user each time it is created from an image. Is it possible to automate running these commands as a root administrator user each time my ...
Taras's user avatar
  • 105
2 votes
0 answers
920 views

How to colorize kubernetes logs?

It's easy enough to enable colorful logs on docker containers (by setting TERM=xterm-256color and running with tty: True). Still, I'm not getting any color when I run kubectl logs/stern on the ...
Jesse's user avatar
  • 121
0 votes
1 answer
948 views

Azure Devops deploy docker image to ACR using deployment job

I'm trying to deploy a docker image to Azure Container Registry via an Azure Devops pipeline. Now this works fine when I run it with this script: trigger: - master variables: # Container registry ...
Josh's user avatar
  • 101
0 votes
1 answer
4k views

Docker warning about platform not matching the host platform

I have a Dockerfile that works on both mac and windows. But when I create an actual container on mac, I always get a warning that says: PS /Users/me/> docker run -it platformtest /bin/bash WARNING:...
dot's user avatar
  • 115
1 vote
3 answers
4k views

Creating container image without docker

Is it possible to build a container image as a simple user account on a system which does not have docker or podman installed? In other words, is there a user-space tool/application which can build an ...
Plazgoth's user avatar
  • 113
1 vote
1 answer
2k views

gitlab container registry: how to test that it's set up and working?

I'm trying to push for the first time to a gitlab project container registry. I am not a gitlab administrator so I can't change global settings. But as far as my project is concerned I've made sure ...
dot's user avatar
  • 115
0 votes
1 answer
4k views

gitlab project registry - docker push fails with invalid reference format error message

I have create a personal access token for my project. in my gitlab-ci.yml I'm trying to create a docker image and then save it in my project's repository. I'm able to login - I see an explicit ...
dot's user avatar
  • 115
4 votes
2 answers
305 views

Docker vs Virtualisation

I am trying to understand the underlining architecture of Docker. The diagram that's been shown everywhere claims that in contrast with Virtualisation technologies such as "VirtualBox", ...
Mike M's user avatar
  • 143
0 votes
1 answer
448 views

ImagePullBackOff err while pulling docker image in different project in Google Cloud

I am trying to pull a private image from Artifact Registry repo in Google Cloud from a kubernetes cluster running in a different Google Cloud project using kubectl. kubernetes version 1.20.15-gke.1000 ...
user1403505's user avatar
1 vote
2 answers
7k views

How to connect from Docker container to the host?

My problem is that im trying to connect to a Docker host(Im running on Ubuntu) from a container. Ive tried several solutions including adding extra_hosts: host.docker.internal:host-gateway, but still ...
Joel's user avatar
  • 23
0 votes
1 answer
542 views

While pulling windows docker image from private registry, Docker trying to download some layers from internet

I created a Windows based docker image (asp.net web project) and pushed it to my private image registry. when i pull the image from another windows server (offline and there is not a proxy), i'm ...
Murat Cabuk's user avatar
3 votes
2 answers
1k views

How Docker volume works?

Somebody creates a php and Apache project, with docker, using volumes to persist the files that this project generated (plain text files saved in a folder). This person built the image and ran the ...
Jose_Neto5689's user avatar
0 votes
1 answer
48 views

Docker cloud hosting with persistent storage

I need to find a cloud provider to host a simple docker service but with a persistent storage attached. I know I can achieve this using GCE (VM + docker + volume mounted from VM) but this looks a bit ...
Pier's user avatar
  • 344
2 votes
0 answers
350 views

Run commands on docker container and sync automatically with host

I Dockerkized a MENN(Nextjs) stack App, now everything works fine. I run into issues when i need to install npm packages. let me first show you the structure src/server/Dockerfile FROM node:14-alpine ...
uneeb meer's user avatar
1 vote
1 answer
3k views

Why can't my playbook find the community.docker modules

I am trying to write a playbook that will download a docker image and run it on a group of servers. I have a python 3.6 virtualenv created and installed ansible into it. I then ran: ansible-galaxy ...
dnraikes's user avatar
  • 111
2 votes
1 answer
155 views

Container deployment sync problem with Ansible

Imagine the following situation after you have switched from docker-compose to Ansible: You start a DB container which needs time to boot up You want to load data dump into it (could be also you ...
Ta Mu's user avatar
  • 6,782
2 votes
2 answers
3k views

How to automate docker prune commands using crontab

Can someone help me on how to clean up containers and images which are 3 months older automatically by using crontab scheduling? Which type of method need to use for automation? I have manually tried ...
Hackaholic's user avatar
0 votes
1 answer
605 views

Docker build from gitlab pipeline

I do have the following "shared.gitlab-ci.yml" variables: GIT_SUBMODULE_STRATEGY: recursive DOCKERFILE_BUILD: docker/build/Dockerfile DOCKERFILE_TEST: docker/test/Dockerfile ...
Pwnstar's user avatar
  • 103
0 votes
2 answers
648 views

Mac M1 Docker Desktop no longer launches

I’ve been using Docker Desktop on my Mac M1 for over a year without trouble and just today it seems to have stopped working. It may have coincided with an update. When trying to open Docker Desktop by ...
Manachi's user avatar
  • 101
1 vote
3 answers
1k views

How do I create a Docker image from a container without configuration changes?

I am aware of two ways of creating Docker images: Build the image using a Dockerfile Use docker commit <container_id> against a running container with changes. I find changing a Dockerfile ...
kcghost's user avatar
  • 111
0 votes
2 answers
590 views

How to create a container from an image

I have this following image: REPOSITORY TAG IMAGE ID CREATED SIZE nvcr.io/nvidia/pytorch 18.04-py3 c3555fec4fe6 3 years ago 5.9GB The goal is to use Ubuntu ...
Levent Ozbek's user avatar
-1 votes
1 answer
404 views

Can't run apt-get update in an Ubuntu 16.04 docker container

Everytime I run apt-get update -y in my Ubuntu 16.04 docker container, I get the following error: Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:2 http://archive.ubuntu.com/...
Levent Ozbek's user avatar
2 votes
1 answer
356 views

Docker performance when running on LVM

It seems that when using overlay2 storage driver, docker is much slower when using a LVM compared to without a LVM (ext4 filesystem in both cases, same machine). Questions: Is this intended/expected? ...
MRalwasser's user avatar
2 votes
1 answer
80 views

Docker refuses to execute commands or start containers with Ubuntu 20 image on Ubuntu 21 host, but works on Ubuntu 20 host

So I've pulled the amd64/ubuntu:latest image, which is an Ubuntu 20 image for docker and customized it a bit. Not much - zsh, vim, locales and openssh-server compiled from source (because the package ...
TheProtagonist's user avatar
2 votes
1 answer
872 views

Can we run github actions inside a docker container?

Is it possible to run github actions inside docker container like jenkins?
user48951's user avatar
1 vote
1 answer
2k views

How to create an Ubuntu image for 16.04

I am just slowly getting into Docker. I want to create an Ubuntu 16.04 image. I know that docker run -it ubuntu creates an ubuntu image but when I do that, I get 20.04
Levent Ozbek's user avatar
1 vote
1 answer
3k views

How to caching the docker images?

I try to improve the performance of my pipeline stages in gitlab cicd. The Gitlab is self hosted and the Runner runs as docker with docker executor. I recognized, that for both jobs in my stages (test,...
MaKaNu's user avatar
  • 111
0 votes
1 answer
2k views

Install a RPM from build context without copying it first

During dockerbuild, I'd like to install a (rather big) RPM from build context/host without copying it first into the image in order to keep my image small. Ideally, there would be a way to read a file ...
MRalwasser's user avatar
0 votes
1 answer
89 views

How to know if a certain container has a software/package installed or not?

I use Gradient notebooks, they grab the container from a URL and files from a Github repo and combine them to make Notebook instance. Something like this one. However, the container image from this ...
Prakhar Sharma's user avatar
2 votes
2 answers
1k views

Is it possible to make the minikube VM use the VPN configuration from the host machine?

I am currently writing a script that deploys a number of applications to a local minikube cluster for development purposes. This script is working great on Linux, but then I tried it on Mac OSX. When ...
Hannes Knutsson's user avatar
2 votes
2 answers
864 views

Running builds requiring docker daemon in Jenkins installed using helm and running as containerd container

Jenkins is installed using official helm chart on Kubernetes cluster that uses containerd as container runtime. How to configure containerized agents which will run docker client commands e.g. for ...
rokpoto.com's user avatar
0 votes
1 answer
2k views

Can you run chown on a root volume folder in a Dockerfile setup?

I have a docker container with a volume /foo defined in the docker-compose.yml. The Dockerfile then does: RUN useradd -d /home/newuser -m -s /bin/bash newuser && \ usermod newuser -g www-...
Sirisian's user avatar
  • 101
0 votes
0 answers
2k views

Using nginx as a transparent MITM forward proxy

I'm wondering if nginx (or squid, etc) can be used to setup a transparent MITM forward proxy in a docker environment (I'm currently using docker compose). I would have 3 "types" of ...
Matty F's user avatar
  • 109
0 votes
1 answer
1k views

docker exec and docker run do not work with names

I ran docker run busybox a few times with success. docker run busybox echo "hello from busybox" Output: hello from busybox docker ps -a shows the following: CONTAINER ID IMAGE ...
user2220115's user avatar
0 votes
1 answer
2k views

My Python application doesn't communicate with MySQL inside docker. Can someone help me?

The connection is not succeeding in docker. Look at my settings: Dockerfile FROM python:3.8.5-alpine WORKDIR /app COPY requirements.txt . RUN python3 -m pip install --upgrade pip RUN pip install -...
Flavio W.'s user avatar
1 vote
1 answer
3k views

docker-compose does not update /etc/hosts at build time

When building an image of a docker container I need to access a service on host localhost. It looks like --add-host option for docker command updates /etc/hosts both at image build time and container ...
dzieciou's user avatar
  • 111
0 votes
1 answer
25 views

Contradictory output from ps -all after starting a docker container multiple times?

I'm having trouble understanding the output of docker ps -all after starting the same docker container multiple times (because there is a problem with my understanding of docker). To illustrate the ...
user1172468's user avatar
2 votes
2 answers
176 views

Names field in docker ps -a command

When I run the "docker ps -a" command following command I fields: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS ...
user2220115's user avatar
2 votes
1 answer
130 views

Is it good or ok or a bad practice to add Dependency via a RUN command in Dockerfile?

I am trying to create an image using a multi-stage build for a node project. I am using NestJs for the project since it uses TypeScript, and if I install only production dependency in the production ...
Soheb's user avatar
  • 121
3 votes
1 answer
3k views

docker-credential-desktop.exe not installed

Moving from Docker Desktop for Windows to Docker Server / CLI for Linux to escape the license fee, I used the standard documentation for Ubuntu to install docker into my WSL2. After frankensteining it ...
Chris's user avatar
  • 151
4 votes
2 answers
2k views

Use buildx in Jenkinsfile for platform specific build

I'm currently building my docker image declaratively in a Jenkinsfile by: app = docker.build("...") Now I need to generate a platform specific build for ARM64. For this purpose docker ...
Sam's user avatar
  • 141
1 vote
1 answer
347 views

is the Docker Certified Associate exam still endorsed by docker?

I'm trying to find some certifications and I found some info about the DCA but I can't find something about it on Docker's actual website. The only exception is a blog post from 2018. What ...
misterManager's user avatar
1 vote
1 answer
925 views

How to start a container with NFS volume if NFS server is offline?

This issue is similar to one posted a couple of years ago but with a slight difference. I'm trying to identify how to spin up a Docker container which has an NFS Volume mount whether or not the NFS ...
Eric B.'s user avatar
  • 111
3 votes
1 answer
253 views

How to dockerize a jupyer notebooks project?

I have a project composed of 6 different Jupyter Notebooks and 4 CSV files. I would like also my colleagues can try to use this project, even if they don't have python installed and maybe with another ...
Daniele's user avatar
  • 33
1 vote
1 answer
45 views

Check TZ in Container Image without creating instance?

I have a requirement to assure that the container image we build runs in UTC only. I'd like to avoid starting it up just to check the link on /etc/localtime. I thought maybe a tool like dive that ...
Josiah's user avatar
  • 363
3 votes
3 answers
13k views

docker-compose exec does not execute command even when container is running

I have a docker-compose-custom.yml file like this: version: '3.8' services: myapp-back-preproduction: build: context: . container_name: myapp-back-preproduction image: 'myapp-back-...
Mik378's user avatar
  • 133
5 votes
1 answer
15k views

From inside a Docker container, how can I consume an API that is on the machine's localhost?

First of all, please forgive me if any information is missing or if my question does not meet the standards required by the site. I have very basic knowledge of docker, linux and networking and I am ...
Rafael Arend's user avatar
1 vote
1 answer
664 views

how to schedule container in GCP

I have 5 tasks in my project that need to be run periodically. Some of these tasks are run on a daily basis, some on a weekly basis. I try to containerize each task in a Docker image. Here is one ...
user33064's user avatar

1
3 4
5
6 7
24