Showing posts with label docker. Show all posts
Showing posts with label docker. Show all posts

Monday, November 27, 2023

[DevOps] Hint for running portainer under podman

Hello, 

Officially the Portainer is supports only docker, but on some systems we can use only Podman (RHEL systems), with this is hint you can run portainer under podman:

systemctl enable podman
systemctl start podman

#You will need to enable linger for this user in order for the socket to work when the user is not logged in.
loginctl enable-linger $USER

docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /run/podman/podman.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest


Friday, June 2, 2023

[DevOps] Remove all docker logs

Sometimes are needs to remove logs for all containers, for example, when you not have enough disk space

sudo sh -c "truncate -s 0 /var/lib/docker/containers/*/*-json.log"

Saturday, September 18, 2021

[DevOps] Small tricks for debugging docker images

Sometimes you are needed to be got what of consists of in the docker image. So you can convert this is an image to archive and unpack this is an archive to a file system.

For understanding
docker build --tag site:latest .

docker tag site:latest _name/site:latest

docker push _name/site:latest


# This is keyvalues strings

docker run -d -p 3000:3000 --name container_name site:latest

docker export container_name > contents.tar


Sunday, October 18, 2020

[DevOps] Installation docker and portainer

Hello, portainer it's a web GUI for managing of docker images. Is possible work as a local docker so and as remote.