Hot answers tagged

11 votes
Accepted

What is the difference between php-cli and php-fpm, why 2 php variants and why choose one or the other?

They are different tools for different purposes: php-cli is the standalone tool for running a PHP scripts in the same way you would run it from the command line: php somescript.php. It seems you can ...
user avatar
4 votes
Accepted

docker: Error response from daemon: Conflict. The container name "/basexhttp" is already in use by container

You're attempting to create two different containers, each with the same name. Each time you execute docker run it will create a container, and you've named the containers the same with --name ...
user avatar
  • 2,800
4 votes
Accepted

how to send a password to MySQL with docker?

As the documentation clearly states docker run command should be invoked as follows: docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...] so when you run docker run mysql -p 3306:3306 -e ...
user avatar
3 votes

How to auto generate a diagram out of my AWS VPC?

Yes and it costs 400$ a month. https://docs.aws.amazon.com/solutions/latest/aws-perspective/welcome.html It's a live diagram of all the resource in your organization, which means that it's capable of ...
user avatar
  • 355
3 votes

What is a golden image?

As noted in the comments there are several applications for the term. This answer focuses on the term as it relates to a compliance audit. In the context of an audit, a golden image refers to an ...
user avatar
  • 620
3 votes

Docker preserve images policy

I do not believe that there is a way to set this as a global policy. However, there is a simple command you can run that will "prune" or remove your unused images. You will want to use docker image ...
user avatar
3 votes
Accepted

Are there Docker Hub comparable public Docker image repositories?

With Docker following the Open Container Initiative, in the event that Docker were to disappear, people would still have access to images stored outside of Docker Hub. While there is not a public ...
user avatar
3 votes

Include curl commands in a PostgreSQL Docker environment

One way to use curl inside the container will be to use a custom Dockerfile to build you postgrsql container. Just use the image: postgres:12-alpine as the base image of your Dockerfile and install ...
user avatar
3 votes
Accepted

How to create a "silent" MySQL docker container?

You can run the container in detached mode by passing -d or --detach with the run command: https://docs.docker.com/engine/reference/run/#detached-vs-foreground
user avatar
  • 870
3 votes

Why is Docker best practice to minimise the number of layers in an image?

you should minimize the Layers of an Image for following Reasons: first, you can only have (afaik) 127 Layers in an Image. second: yes, you should include severals Steps in a Single run because of ...
user avatar
  • 31
3 votes
Accepted

Extra none:none images after docker build

Those images are the docker build cache. You need this to be able to quickly rebuild similar images, and to avoid rebuilding unchanged layers which would result in resending those to remote registry ...
user avatar
  • 2,800
3 votes
Accepted

What are Design Patterns for creating images?

The general design pattern is one container = one running service - see the initial comment at https://docs.docker.com/config/containers/multi-service_container/ Now, after spending about a year ...
user avatar
3 votes
Accepted

How to download a VM image from GCP?

I don't know of a way to get the actual GCE VM images. But it's possible to export the images to GCS (as a tar.gz archive): If you need to move your Compute Engine boot disk data outside of your ...
user avatar
3 votes
Accepted

How to verify docker sha256 on hub.docker with docker?

Use this command docker images --digests You'll get this output REPOSITORY TAG DIGEST IMAGE ID CREATED SIZE ...
user avatar
  • 71
2 votes
Accepted

What do we know about how open source software becomes eligible for the Docker Hub library?

From https://docs.docker.com/docker-hub/official_repos/ Docker, Inc. sponsors a dedicated team that is responsible for reviewing and publishing all content in the official repositories. This team ...
user avatar
  • 220
2 votes

How to make different permissions for different subdirectories of storage bucket

Before giving the answer I'd like to clarify that S3 is meant for object storage, meaning that there's no file system involved and thus there are not "directories" per se. So, an "object" with the ...
user avatar
2 votes
Accepted

Does Docker images works without client application

When you download mariadb image, mysql client tool is only available inside container. It is not getting magically installed on your local - that is why you had to install mysql client app. ...
user avatar
  • 757
2 votes

Are there arguments against using “imagization" tools in the literature and if so, what are the main ones?

In my opinion, your real problem about this is getting incomplete data that didn't include image scanning, hardening and trusted registries. Here are some first directions: The well curated Official ...
user avatar
2 votes

What exactly is a buildpack in DevOps?

They are the same thing with different names. It's a general term.
user avatar
  • 45
2 votes
Accepted

cannot get bash prompt: Error response from daemon: Container foo is not running

Whoever created basex/basexhttp:latest does not seem to know Docker very well. They copied files necessary to a directory that was later configured as a volume, which means it can only be bound to an ...
user avatar
2 votes

How to gain console access to a MySQL server running on a docker container from the host?

Solution: root $ root $ mysql -h localhost -P 3306 --protocol=tcp -u user -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 17 Server version: ...
user avatar
1 vote

Typical build size of the top 20 most popular frameworks?

Maybe instead of trying to discover the "typical" or "average" size of an app built with a particular framework, since this will be purely anecdotal and difficult to search for, ...
user avatar
  • 3,003
1 vote
Accepted

Install a RPM from build context without copying it first

Using buildkit, you can mount from the build context with type=bind to access files without including them in your resulting image. # syntax=docker/dockerfile:1.3 FROM base RUN --mount=type=bind,...
user avatar
  • 2,800
1 vote

How to gain root access to an existing docker container?

Solution is to use exec as: root@doge:~# root@doge:~# docker run -ti -d --name basexhttp --publish 1984:1984 --publish 8984:8984 --volume "$(pwd)/basex/data":/srv/basex/...
user avatar
1 vote

Build image from inside a pod or container

If you simply need to build a docker image, I recommend using Kaniko. It allows you to build a docker image without having to expose the docker.sock or running your pods in privileged mode, which ...
user avatar
  • 3,003
1 vote

Helm Repo: can it host dockerfiles and other image-building artifacts

Well that's a legit question IMHO, but there are multiple way of doing things (and no one is worth than other). 1- Everything from dev to prod at the same place If you want to grab everything from dev ...
user avatar
1 vote

docker-compose up: Error starting userland proxy: listen tcp 0.0.0.0:443: bind: address already in use

thought it was working because docker-compose build returned without errors. I've tried a few URL's, but can't quite tell what happened: root $ root $ docker-compose up Starting frappe_docker_erpnext-...
user avatar
1 vote

how to push an image to docker hub?

horribly insecure: root $ root $ docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. ...
user avatar
1 vote

Can't access startfile http://localhost/

created with: docker run -d -p 80:8080 -p 443:8443 jetty gives a start page as: Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server ...
user avatar
1 vote
Accepted

What exactly is a buildpack in DevOps?

You asked several questions one of which was answered in another question and I believe the other answer is only half correct. If [it being a general DevOps technology is] the case, what exactly [is ...
user avatar
  • 126

Only top scored, non community-wiki answers of a minimum length are eligible