New answers tagged docker
2
votes
Accepted
Interface between applications running inside and outside a docker container
There are two very obvious interfaces between a Docker Container and the host that you should probably explore further:
Published ports
Bind mounts (persistent storage)
Published ports
One option ...
-1
votes
Accepted
.docker folder in home dir is too large
The thing is I may have myself specified that much pre-occupied space for docker during setting it up.
Go to Docker Desktop > Settings > Resources and adjust the storage according to your needs.
0
votes
How to run a docker-compose as a systemd service?
If you use restart: always in your docker compose file (which is fairly typical), then the docker daemon will automatically restart the container when the daemon itself starts up -- which means that ...
2
votes
.sh file execution: permission denied exit code 126
The bash manual explains it:
If a command is not found, the child process created to execute it returns a status of 127. If a command is found but is not executable, the return status is 126.
You ...
1
vote
Docker-compose giving 'ContainerConfig' errors after update today
..and if, like me, you were calling docker-compose via ansible then you'll need to upgrade
community.docker.docker_compose:
to
community.docker.docker_compose_v2:
and possibly make some other changes ...
0
votes
Docker-compose giving 'ContainerConfig' errors after update today
Sometimes you got this because you have running containers.
I got this error once with my ansible playbook and this works for me.
- name: stopping existing container
shell:
chdir: &...
14
votes
Accepted
Docker-compose giving 'ContainerConfig' errors after update today
Same here. After changing from docker-compose to docker compose it works with no other changes.
Now, my containers are running with:
docker compose up -d
instead of:
docker-compose up -d
This is ...
1
vote
Docker-compose giving 'ContainerConfig' errors after update today
I ran into the same problem today.
docker-compose down
It worked for me
0
votes
Failed Docker installation attempts: Couldn't not run the the docker installtion .deb file
I tried this and it fixed it:
sudo apt --fix-broken install
Then the docker install worked after that:
sudo apt-get install ./docker-desktop-<version>-<arch>.deb
0
votes
getting error while creating kubernetes repositories
Regrettably, Linux packages for versions earlier than v1.24 are not accessible in the updated Kubernetes package repositories (pkgs.k8s.io). Nonetheless, it's possible to install the necessary ...
-1
votes
Docker: How to know what version of Ubuntu 22.04 is referred to an Index Digest?
Welcome to the ask Ubuntu forum.
I'm not sure I'm understanding your question, but this may be a simple solution.
From Terminal:
lsb_release -a
This will give a description, release number, and the ...
2
votes
Docker container fails to answer respond to HTTP request from host machine
The error is in your script for building the container, when you run:
docker run -d --name demowebsiteapi \
-v $DATA_FOLDER:/data/ -p 127.0.0.1:8001:8001 \
--restart unless-stopped --ipc=host ...
2
votes
Docker volume binding not working on Ubuntu Server 22.04 LTS
I found a solution. The problem lies somewhere in the Snap installation of Docker. Removing the Snap version of Docker and installing it based on the information from the official Docker page solved ...
0
votes
How to add a daemon.json file in docker ubuntu?
often the file does not exist and you will need to create it. In recent docker versions it contains just the following
{
"log-level": "error"
}
To create it, you may ...
0
votes
Accepted
Docker Relocate to external USB SSD Problem
I resolved my issue. The problem was that storage-driver=overlay2 was not compatible with the NTFS file system. I re-formatted my flash drive to be ext4 and this resolved my issue. I hope someone can ...
0
votes
getting error while creating kubernetes repositories
Both answers already posted give different parts of the puzzle and are helpful. But neither addresses another category of errors you are getting, the "is configured multiple times" errors.
...
1
vote
getting error while creating kubernetes repositories
The legacy repositories (apt.kubernetes.io and yum.kubernetes.io) are deprecated. We don't have a way to fix this for these legacy repositories. Instead, we strongly recommend migrating to the new ...
2
votes
getting error while creating kubernetes repositories
A repository has to have a specific structure to work with apt. One part of this structure is a file named Release. In your case, at least this file is missing from the repository in question:
E: The ...
0
votes
Ubuntu 22.04 Docker Desktop 4.12 stuck at running
Also encountered this problem recently. Just copy&paste the official instructions here in case the website changes and someone needs that specific solution.
The kvm module should load ...
0
votes
"Cannot connect to the Docker daemon ...." when running docker on Ubuntu/WSL
This fix worked for me :
Run sudo update-alternatives --config iptables
Enter 1 to select iptables-legacy
Run sudo service docker to start Docker
0
votes
How to know the difference between the distributed Ubuntu image and Docker Ubuntu image
As somebody who is just learning Docker, I will tell you than an official image will not have any changes aside from those required to run it in the Docker container. I read the description of the ...
0
votes
How to fix docker container autocompletion
In my case, I had to enable programmable completion features in .~/.bashrc (or add in the very bottom)
# enable programmable completion features (you don't need to enable
# this, if it's already ...
Top 50 recent answers are included
Related Tags
docker × 1257apt × 154
server × 125
networking × 112
18.04 × 103
20.04 × 98
16.04 × 78
container × 67
permissions × 57
package-management × 55
22.04 × 48
14.04 × 45
command-line × 45
software-installation × 43
bash × 39
systemd × 37
snap × 35
nvidia × 28
windows-subsystem-for-linux × 26
virtualbox × 25
python × 25
iptables × 25
mount × 24
dns × 24
ssh × 23