15
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 ...
6
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 ...
5
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 ...
4
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 ...
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 ...
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 ...
3
votes
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,...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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
...
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
...
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 ...
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 ...
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.
...
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 ...
2
votes
What exactly is a buildpack in DevOps?
They are the same thing with different names. It's a general term.
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 ...
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: ...
2
votes
Accepted
Multistage docker build for Python distroless image
You're trying to copy just the /venv directory, but that's not going to work. Take a look at the contents of that directory, for example:
root@52bdcc57abd8:/# python3 -m venv /venv
root@52bdcc57abd8:/#...
2
votes
What is the GitLab "Digest" on the container registry next to the images, why is different for two duplicated images
If podman is doing the same thing as docker, the image ID is the config digest from the image. The registry is showing the manifest digest. There are multiple digests for an image, the registry is a ...
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, ...
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/...
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 ...
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 ...
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-...
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.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
images × 40docker × 24
containers × 13
kubernetes × 5
dockerfile × 5
databases × 5
bash × 4
docker-compose × 3
culture × 3
builds × 3
docker-registry × 3
mysql × 3
gitlab × 2
terminology × 2
virtualization × 2
postgresql × 2
architecture × 2
amazon-web-services × 1
continuous-integration × 1
linux × 1
security × 1
networking × 1
python × 1
helm × 1
amazon-s3 × 1