Tag : dockerfile

I am using gitlab installed on ubuntu server to run my gitlab ci/cd jobs. So my .gitlab-ci.yml with template of docker looks like below: stages: – build docker-build: # Official docker image. image: docker:latest stage: build services: – docker:dind before_script: – docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: – docker build –pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" ..

Read more

I am building a dockerized R Shiny Application. I recently purchased a new router: ASUS RT-AX55, and am running into issues with docker images downloading dependencies. When I install packages with dependencies locally, I have no issues. However, when I install packages in the course of building from a docker file I receive the following ..

Read more

Hope this isn’t a stupid question. When looking at Docker images, particularly from the official repository they list multiple versions and labels for each dockerfile. For instance: 9.1.6-php8.0-apache-buster, 9.1-php8.0-apache-buster, 9-php8.0-apache-buster, php8.0-apache- buster, 9.1.6-php8.0-apache, 9.1-php8.0-apache, 9-php8.0-apache, php8.0-apache, 9.1.6-apache- buster, 9.1-apache-buster, 9-apache-buster, apache-buster, 9.1.6-apache, 9.1-apache, 9-apache, apache, 9.1.6, 9.1, 9, latest, 9.1.6-php8.0, 9.1-php8.0, 9-php8.0, php8.0 My question ..

Read more

I have a .net core solution with 4 projects inside. Each one has one csproj inside, and I have an structure similar to this: – Project |- ApiLoadService |- aspnet-core-dotnet-core |- TrackingService |- UserService Also, a Dockerfile inside of my ApiLoadService with: FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app COPY *.csproj ./ RUN dotnet restore COPY ..

Read more

I want to set a file direction as a environment variable in docker run command line as follow: docker run -e FILE_DIR=C:UsersxyzDesktopappsample.txt docker_image_name but I get this error: FileNotFoundError: [Errno 2] No such file or directory: ‘C:UsersxyzDesktopappsample.txt’ why docker puts double ?!!! is there any command that I should add such as python for example ..

Read more

I want to create a custom MySQL docker image in https://labs.play-with-docker.com/ using existing mysql file. MySQL file looks like below. abc.mysql create schema my-schema1; use my-schema1; create table table1( id bigint primary key, name varchar(50) ); insert into table1 values(7009009001,’Carry’); select * from table1; create schema my-schema2; use my-schema2; create table table2( id bigint primary ..

Read more