Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
To find all of users ids:

ps -eo uid


#linux sysadmin #ps #users #uid
Remove all stopped containers.
docker rm $(docker ps -a -q)

#docker #rm #ps
How to get IP address of a docker container?

First you need to issue the following command to get the container id (first column):
docker ps

Use the container ID to run:
docker inspect <container ID>

At the bottom,under NetworkSettings, you can find IPAddress.

#docker #ip_address #container #ps #ip #inspect
Linux in Docker: Wheezy: "ps: command not found"

Solution:

RUN apt-get update && apt-get install -y procps


#docker #linux #ps #command_not_found #procps