Horje
get docker id from name Code Example
get docker id from name
In Linux:

$ sudo docker ps -aqf "name=containername"

Or in OS X, Windows:

$ docker ps -aqf "name=containername"


where containername is your container name.
To avoid getting false positives, you can use regex anchors like so:
docker ps -aqf "name=^containername$"

explanation:
    -q for quiet. output only the ID
    -a for all. works even if your container is not running
    -f for filter.
    ^ container name must start with this string
    $ container name must end with this string





Shell

Related
public ip linux Code Example public ip linux Code Example
Kali linux Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? virtualbox Code Example Kali linux Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? virtualbox Code Example
force delete pod kubernetes Code Example force delete pod kubernetes Code Example
flask install Code Example flask install Code Example
how to install pip Code Example how to install pip Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11