1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#1741 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1613 …}
+slug: "How-to-take-actions-on-multiple-docker-containers-at-once"
+title: "How to take actions on multiple docker containers at once"
+url: null
+body: """
Again, please tell me if there is a better way to do this.\n
\n
While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID.\n
\n
Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command:\n
\n
```\n
\n
<span style="color:#323232;">$ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl'\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">$ dcl snikket\n
</span><span style="color:#323232;">b3fcbc808cc9\n
</span><span style="color:#323232;">1947885fbb24\n
</span><span style="color:#323232;">054d67d2e8b9\n
</span><span style="color:#323232;">d8fe9df5f61f\n
</span>\n
```\n
\n
So now that I’m getting a list of IDs, I can easily, for example, pause all of them:\n
\n
```\n
\n
<span style="color:#323232;">$ docker container pause $( dcl snikket )\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span>\n
```\n
\n
The containers weren’t actually running, but this shows the alias working.\n
\n
dcl obviously stands for ‘docker container ls’
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 26
+favouriteCount: 24
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701208188 {#1597
date: 2023-11-28 22:49:48.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1604 …}
+votes: Doctrine\ORM\PersistentCollection {#1619 …}
+reports: Doctrine\ORM\PersistentCollection {#1683 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2463 …}
+badges: Doctrine\ORM\PersistentCollection {#2371 …}
+children: [
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I don’t know if this works in `docker` (usually there is 1:1 equivalency between the two), but with `podman` you can do something like:\n
\n
```\n
\n
<span style="color:#323232;">podman stop --filter name=foo\n
</span>\n
```\n
\n
`man podman-stop` tells us:\n
\n
```\n
\n
<span style="color:#323232;"> --filter, -f=filter\n
</span><span style="color:#323232;"> Filter what containers are going to be stopped. Multiple filters can be given with multiple uses of the --filter flag. Filters with the same key work\n
</span><span style="color:#323232;"> inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1701999236 {#1439
date: 2023-12-08 02:33:56.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 173802
-bodyTs: "'1':13,14 'alway':81 'contain':43 'differ':79 'docker':9 'equival':15 'except':71 'exclus':76,83 'f':39 'filter':29,38,40,41,50,59,61,77 'flag':60 'foo':31 'given':53 'go':45 'inclus':67 'key':65,80 'know':4 'label':73 'like':26 'man':32 'multipl':49,55 'name':30 'podman':21,27,34 'podman-stop':33 'someth':25 'stop':28,35,48 'tell':36 'two':18 'us':37 'use':56 'usual':10 'work':7,66,82"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5647437"
+editedAt: null
+createdAt: DateTimeImmutable @1701184603 {#1435
date: 2023-11-28 16:16:43.0 +01:00
}
+"title": 173802
}
]
-id: 17724
-titleTs: "'action':4 'contain':8 'docker':7 'multipl':6 'take':3"
-bodyTs: "'054d67d2e8b9':87 '1':81 '1947885fbb24':86 'actual':149 'alia':40,72,155 'anoth':70 'aq':78 'b3fcbc808cc9':85 'better':9 'command':71 'contain':22,36,54,60,76,109,117,125,133,141,146,162 'copi':33 'd8fe9df5f61f':88 'daemon':116,124,132,140 'dcl':73,74,82,83,111,157 'docker':16,75,108,161 'easili':101 'error':113,121,129,137 'exampl':103 'f':79 'frequent':17 'get':58,94 'got':24 'id':37,61,98 'includ':66 'list':96 'ls':30,77,163 'm':93 'name':51,80 'need':19 'obvious':158 'part':48,68 'past':34 'paus':104,110 'pleas':2 'real':25 'rememb':45 'respons':114,122,130,138 'run':120,128,136,144,150 'show':153 'sick':26 'singl':47 'snikket':84,112 'stand':159 'start/stop/rm':21 'tell':3 'test':15 'use':38 'way':10 'weren':147 'work':156"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701244915
+visibility: "visible "
+apId: "https://lemmy.nz/post/3841751"
+editedAt: null
+createdAt: DateTimeImmutable @1701158515 {#1693
date: 2023-11-28 09:01:55.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#1741 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1613 …}
+slug: "How-to-take-actions-on-multiple-docker-containers-at-once"
+title: "How to take actions on multiple docker containers at once"
+url: null
+body: """
Again, please tell me if there is a better way to do this.\n
\n
While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID.\n
\n
Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command:\n
\n
```\n
\n
<span style="color:#323232;">$ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl'\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">$ dcl snikket\n
</span><span style="color:#323232;">b3fcbc808cc9\n
</span><span style="color:#323232;">1947885fbb24\n
</span><span style="color:#323232;">054d67d2e8b9\n
</span><span style="color:#323232;">d8fe9df5f61f\n
</span>\n
```\n
\n
So now that I’m getting a list of IDs, I can easily, for example, pause all of them:\n
\n
```\n
\n
<span style="color:#323232;">$ docker container pause $( dcl snikket )\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span>\n
```\n
\n
The containers weren’t actually running, but this shows the alias working.\n
\n
dcl obviously stands for ‘docker container ls’
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 26
+favouriteCount: 24
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701208188 {#1597
date: 2023-11-28 22:49:48.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1604 …}
+votes: Doctrine\ORM\PersistentCollection {#1619 …}
+reports: Doctrine\ORM\PersistentCollection {#1683 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2463 …}
+badges: Doctrine\ORM\PersistentCollection {#2371 …}
+children: [
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I don’t know if this works in `docker` (usually there is 1:1 equivalency between the two), but with `podman` you can do something like:\n
\n
```\n
\n
<span style="color:#323232;">podman stop --filter name=foo\n
</span>\n
```\n
\n
`man podman-stop` tells us:\n
\n
```\n
\n
<span style="color:#323232;"> --filter, -f=filter\n
</span><span style="color:#323232;"> Filter what containers are going to be stopped. Multiple filters can be given with multiple uses of the --filter flag. Filters with the same key work\n
</span><span style="color:#323232;"> inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1701999236 {#1439
date: 2023-12-08 02:33:56.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 173802
-bodyTs: "'1':13,14 'alway':81 'contain':43 'differ':79 'docker':9 'equival':15 'except':71 'exclus':76,83 'f':39 'filter':29,38,40,41,50,59,61,77 'flag':60 'foo':31 'given':53 'go':45 'inclus':67 'key':65,80 'know':4 'label':73 'like':26 'man':32 'multipl':49,55 'name':30 'podman':21,27,34 'podman-stop':33 'someth':25 'stop':28,35,48 'tell':36 'two':18 'us':37 'use':56 'usual':10 'work':7,66,82"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5647437"
+editedAt: null
+createdAt: DateTimeImmutable @1701184603 {#1435
date: 2023-11-28 16:16:43.0 +01:00
}
+"title": 173802
}
]
-id: 17724
-titleTs: "'action':4 'contain':8 'docker':7 'multipl':6 'take':3"
-bodyTs: "'054d67d2e8b9':87 '1':81 '1947885fbb24':86 'actual':149 'alia':40,72,155 'anoth':70 'aq':78 'b3fcbc808cc9':85 'better':9 'command':71 'contain':22,36,54,60,76,109,117,125,133,141,146,162 'copi':33 'd8fe9df5f61f':88 'daemon':116,124,132,140 'dcl':73,74,82,83,111,157 'docker':16,75,108,161 'easili':101 'error':113,121,129,137 'exampl':103 'f':79 'frequent':17 'get':58,94 'got':24 'id':37,61,98 'includ':66 'list':96 'ls':30,77,163 'm':93 'name':51,80 'need':19 'obvious':158 'part':48,68 'past':34 'paus':104,110 'pleas':2 'real':25 'rememb':45 'respons':114,122,130,138 'run':120,128,136,144,150 'show':153 'sick':26 'singl':47 'snikket':84,112 'stand':159 'start/stop/rm':21 'tell':3 'test':15 'use':38 'way':10 'weren':147 'work':156"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701244915
+visibility: "visible "
+apId: "https://lemmy.nz/post/3841751"
+editedAt: null
+createdAt: DateTimeImmutable @1701158515 {#1693
date: 2023-11-28 09:01:55.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#1741 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1613 …}
+slug: "How-to-take-actions-on-multiple-docker-containers-at-once"
+title: "How to take actions on multiple docker containers at once"
+url: null
+body: """
Again, please tell me if there is a better way to do this.\n
\n
While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID.\n
\n
Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command:\n
\n
```\n
\n
<span style="color:#323232;">$ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl'\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">$ dcl snikket\n
</span><span style="color:#323232;">b3fcbc808cc9\n
</span><span style="color:#323232;">1947885fbb24\n
</span><span style="color:#323232;">054d67d2e8b9\n
</span><span style="color:#323232;">d8fe9df5f61f\n
</span>\n
```\n
\n
So now that I’m getting a list of IDs, I can easily, for example, pause all of them:\n
\n
```\n
\n
<span style="color:#323232;">$ docker container pause $( dcl snikket )\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span>\n
```\n
\n
The containers weren’t actually running, but this shows the alias working.\n
\n
dcl obviously stands for ‘docker container ls’
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 26
+favouriteCount: 24
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701208188 {#1597
date: 2023-11-28 22:49:48.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1604 …}
+votes: Doctrine\ORM\PersistentCollection {#1619 …}
+reports: Doctrine\ORM\PersistentCollection {#1683 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2463 …}
+badges: Doctrine\ORM\PersistentCollection {#2371 …}
+children: [
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I don’t know if this works in `docker` (usually there is 1:1 equivalency between the two), but with `podman` you can do something like:\n
\n
```\n
\n
<span style="color:#323232;">podman stop --filter name=foo\n
</span>\n
```\n
\n
`man podman-stop` tells us:\n
\n
```\n
\n
<span style="color:#323232;"> --filter, -f=filter\n
</span><span style="color:#323232;"> Filter what containers are going to be stopped. Multiple filters can be given with multiple uses of the --filter flag. Filters with the same key work\n
</span><span style="color:#323232;"> inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1701999236 {#1439
date: 2023-12-08 02:33:56.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 173802
-bodyTs: "'1':13,14 'alway':81 'contain':43 'differ':79 'docker':9 'equival':15 'except':71 'exclus':76,83 'f':39 'filter':29,38,40,41,50,59,61,77 'flag':60 'foo':31 'given':53 'go':45 'inclus':67 'key':65,80 'know':4 'label':73 'like':26 'man':32 'multipl':49,55 'name':30 'podman':21,27,34 'podman-stop':33 'someth':25 'stop':28,35,48 'tell':36 'two':18 'us':37 'use':56 'usual':10 'work':7,66,82"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5647437"
+editedAt: null
+createdAt: DateTimeImmutable @1701184603 {#1435
date: 2023-11-28 16:16:43.0 +01:00
}
+"title": 173802
}
]
-id: 17724
-titleTs: "'action':4 'contain':8 'docker':7 'multipl':6 'take':3"
-bodyTs: "'054d67d2e8b9':87 '1':81 '1947885fbb24':86 'actual':149 'alia':40,72,155 'anoth':70 'aq':78 'b3fcbc808cc9':85 'better':9 'command':71 'contain':22,36,54,60,76,109,117,125,133,141,146,162 'copi':33 'd8fe9df5f61f':88 'daemon':116,124,132,140 'dcl':73,74,82,83,111,157 'docker':16,75,108,161 'easili':101 'error':113,121,129,137 'exampl':103 'f':79 'frequent':17 'get':58,94 'got':24 'id':37,61,98 'includ':66 'list':96 'ls':30,77,163 'm':93 'name':51,80 'need':19 'obvious':158 'part':48,68 'past':34 'paus':104,110 'pleas':2 'real':25 'rememb':45 'respons':114,122,130,138 'run':120,128,136,144,150 'show':153 'sick':26 'singl':47 'snikket':84,112 'stand':159 'start/stop/rm':21 'tell':3 'test':15 'use':38 'way':10 'weren':147 'work':156"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701244915
+visibility: "visible "
+apId: "https://lemmy.nz/post/3841751"
+editedAt: null
+createdAt: DateTimeImmutable @1701158515 {#1693
date: 2023-11-28 09:01:55.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#1741 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1613 …}
+slug: "How-to-take-actions-on-multiple-docker-containers-at-once"
+title: "How to take actions on multiple docker containers at once"
+url: null
+body: """
Again, please tell me if there is a better way to do this.\n
\n
While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID.\n
\n
Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command:\n
\n
```\n
\n
<span style="color:#323232;">$ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl'\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">$ dcl snikket\n
</span><span style="color:#323232;">b3fcbc808cc9\n
</span><span style="color:#323232;">1947885fbb24\n
</span><span style="color:#323232;">054d67d2e8b9\n
</span><span style="color:#323232;">d8fe9df5f61f\n
</span>\n
```\n
\n
So now that I’m getting a list of IDs, I can easily, for example, pause all of them:\n
\n
```\n
\n
<span style="color:#323232;">$ docker container pause $( dcl snikket )\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span>\n
```\n
\n
The containers weren’t actually running, but this shows the alias working.\n
\n
dcl obviously stands for ‘docker container ls’
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 26
+favouriteCount: 24
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701208188 {#1597
date: 2023-11-28 22:49:48.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1604 …}
+votes: Doctrine\ORM\PersistentCollection {#1619 …}
+reports: Doctrine\ORM\PersistentCollection {#1683 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2463 …}
+badges: Doctrine\ORM\PersistentCollection {#2371 …}
+children: [
App\Entity\EntryComment {#1697}
]
-id: 17724
-titleTs: "'action':4 'contain':8 'docker':7 'multipl':6 'take':3"
-bodyTs: "'054d67d2e8b9':87 '1':81 '1947885fbb24':86 'actual':149 'alia':40,72,155 'anoth':70 'aq':78 'b3fcbc808cc9':85 'better':9 'command':71 'contain':22,36,54,60,76,109,117,125,133,141,146,162 'copi':33 'd8fe9df5f61f':88 'daemon':116,124,132,140 'dcl':73,74,82,83,111,157 'docker':16,75,108,161 'easili':101 'error':113,121,129,137 'exampl':103 'f':79 'frequent':17 'get':58,94 'got':24 'id':37,61,98 'includ':66 'list':96 'ls':30,77,163 'm':93 'name':51,80 'need':19 'obvious':158 'part':48,68 'past':34 'paus':104,110 'pleas':2 'real':25 'rememb':45 'respons':114,122,130,138 'run':120,128,136,144,150 'show':153 'sick':26 'singl':47 'snikket':84,112 'stand':159 'start/stop/rm':21 'tell':3 'test':15 'use':38 'way':10 'weren':147 'work':156"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701244915
+visibility: "visible "
+apId: "https://lemmy.nz/post/3841751"
+editedAt: null
+createdAt: DateTimeImmutable @1701158515 {#1693
date: 2023-11-28 09:01:55.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I don’t know if this works in `docker` (usually there is 1:1 equivalency between the two), but with `podman` you can do something like:\n
\n
```\n
\n
<span style="color:#323232;">podman stop --filter name=foo\n
</span>\n
```\n
\n
`man podman-stop` tells us:\n
\n
```\n
\n
<span style="color:#323232;"> --filter, -f=filter\n
</span><span style="color:#323232;"> Filter what containers are going to be stopped. Multiple filters can be given with multiple uses of the --filter flag. Filters with the same key work\n
</span><span style="color:#323232;"> inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1701999236 {#1439
date: 2023-12-08 02:33:56.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 173802
-bodyTs: "'1':13,14 'alway':81 'contain':43 'differ':79 'docker':9 'equival':15 'except':71 'exclus':76,83 'f':39 'filter':29,38,40,41,50,59,61,77 'flag':60 'foo':31 'given':53 'go':45 'inclus':67 'key':65,80 'know':4 'label':73 'like':26 'man':32 'multipl':49,55 'name':30 'podman':21,27,34 'podman-stop':33 'someth':25 'stop':28,35,48 'tell':36 'two':18 'us':37 'use':56 'usual':10 'work':7,66,82"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5647437"
+editedAt: null
+createdAt: DateTimeImmutable @1701184603 {#1435
date: 2023-11-28 16:16:43.0 +01:00
}
+"title": 173802
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#1741 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1613 …}
+slug: "How-to-take-actions-on-multiple-docker-containers-at-once"
+title: "How to take actions on multiple docker containers at once"
+url: null
+body: """
Again, please tell me if there is a better way to do this.\n
\n
While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID.\n
\n
Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command:\n
\n
```\n
\n
<span style="color:#323232;">$ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl'\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">$ dcl snikket\n
</span><span style="color:#323232;">b3fcbc808cc9\n
</span><span style="color:#323232;">1947885fbb24\n
</span><span style="color:#323232;">054d67d2e8b9\n
</span><span style="color:#323232;">d8fe9df5f61f\n
</span>\n
```\n
\n
So now that I’m getting a list of IDs, I can easily, for example, pause all of them:\n
\n
```\n
\n
<span style="color:#323232;">$ docker container pause $( dcl snikket )\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span>\n
```\n
\n
The containers weren’t actually running, but this shows the alias working.\n
\n
dcl obviously stands for ‘docker container ls’
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 26
+favouriteCount: 24
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701208188 {#1597
date: 2023-11-28 22:49:48.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1604 …}
+votes: Doctrine\ORM\PersistentCollection {#1619 …}
+reports: Doctrine\ORM\PersistentCollection {#1683 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2463 …}
+badges: Doctrine\ORM\PersistentCollection {#2371 …}
+children: [
App\Entity\EntryComment {#1697}
]
-id: 17724
-titleTs: "'action':4 'contain':8 'docker':7 'multipl':6 'take':3"
-bodyTs: "'054d67d2e8b9':87 '1':81 '1947885fbb24':86 'actual':149 'alia':40,72,155 'anoth':70 'aq':78 'b3fcbc808cc9':85 'better':9 'command':71 'contain':22,36,54,60,76,109,117,125,133,141,146,162 'copi':33 'd8fe9df5f61f':88 'daemon':116,124,132,140 'dcl':73,74,82,83,111,157 'docker':16,75,108,161 'easili':101 'error':113,121,129,137 'exampl':103 'f':79 'frequent':17 'get':58,94 'got':24 'id':37,61,98 'includ':66 'list':96 'ls':30,77,163 'm':93 'name':51,80 'need':19 'obvious':158 'part':48,68 'past':34 'paus':104,110 'pleas':2 'real':25 'rememb':45 'respons':114,122,130,138 'run':120,128,136,144,150 'show':153 'sick':26 'singl':47 'snikket':84,112 'stand':159 'start/stop/rm':21 'tell':3 'test':15 'use':38 'way':10 'weren':147 'work':156"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701244915
+visibility: "visible "
+apId: "https://lemmy.nz/post/3841751"
+editedAt: null
+createdAt: DateTimeImmutable @1701158515 {#1693
date: 2023-11-28 09:01:55.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I don’t know if this works in `docker` (usually there is 1:1 equivalency between the two), but with `podman` you can do something like:\n
\n
```\n
\n
<span style="color:#323232;">podman stop --filter name=foo\n
</span>\n
```\n
\n
`man podman-stop` tells us:\n
\n
```\n
\n
<span style="color:#323232;"> --filter, -f=filter\n
</span><span style="color:#323232;"> Filter what containers are going to be stopped. Multiple filters can be given with multiple uses of the --filter flag. Filters with the same key work\n
</span><span style="color:#323232;"> inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1701999236 {#1439
date: 2023-12-08 02:33:56.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 173802
-bodyTs: "'1':13,14 'alway':81 'contain':43 'differ':79 'docker':9 'equival':15 'except':71 'exclus':76,83 'f':39 'filter':29,38,40,41,50,59,61,77 'flag':60 'foo':31 'given':53 'go':45 'inclus':67 'key':65,80 'know':4 'label':73 'like':26 'man':32 'multipl':49,55 'name':30 'podman':21,27,34 'podman-stop':33 'someth':25 'stop':28,35,48 'tell':36 'two':18 'us':37 'use':56 'usual':10 'work':7,66,82"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5647437"
+editedAt: null
+createdAt: DateTimeImmutable @1701184603 {#1435
date: 2023-11-28 16:16:43.0 +01:00
}
+"title": 173802
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1697
+user: App\Entity\User {#265 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1592
+user: Proxies\__CG__\App\Entity\User {#1741 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1613 …}
+slug: "How-to-take-actions-on-multiple-docker-containers-at-once"
+title: "How to take actions on multiple docker containers at once"
+url: null
+body: """
Again, please tell me if there is a better way to do this.\n
\n
While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID.\n
\n
Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command:\n
\n
```\n
\n
<span style="color:#323232;">$ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl'\n
</span><span style="color:#323232;">\n
</span><span style="color:#323232;">$ dcl snikket\n
</span><span style="color:#323232;">b3fcbc808cc9\n
</span><span style="color:#323232;">1947885fbb24\n
</span><span style="color:#323232;">054d67d2e8b9\n
</span><span style="color:#323232;">d8fe9df5f61f\n
</span>\n
```\n
\n
So now that I’m getting a list of IDs, I can easily, for example, pause all of them:\n
\n
```\n
\n
<span style="color:#323232;">$ docker container pause $( dcl snikket )\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span><span style="color:#323232;">Error response from daemon: container is not running\n
</span>\n
```\n
\n
The containers weren’t actually running, but this shows the alias working.\n
\n
dcl obviously stands for ‘docker container ls’
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 26
+favouriteCount: 24
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701208188 {#1597
date: 2023-11-28 22:49:48.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1604 …}
+votes: Doctrine\ORM\PersistentCollection {#1619 …}
+reports: Doctrine\ORM\PersistentCollection {#1683 …}
+favourites: Doctrine\ORM\PersistentCollection {#2452 …}
+notifications: Doctrine\ORM\PersistentCollection {#2463 …}
+badges: Doctrine\ORM\PersistentCollection {#2371 …}
+children: [
App\Entity\EntryComment {#1697}
]
-id: 17724
-titleTs: "'action':4 'contain':8 'docker':7 'multipl':6 'take':3"
-bodyTs: "'054d67d2e8b9':87 '1':81 '1947885fbb24':86 'actual':149 'alia':40,72,155 'anoth':70 'aq':78 'b3fcbc808cc9':85 'better':9 'command':71 'contain':22,36,54,60,76,109,117,125,133,141,146,162 'copi':33 'd8fe9df5f61f':88 'daemon':116,124,132,140 'dcl':73,74,82,83,111,157 'docker':16,75,108,161 'easili':101 'error':113,121,129,137 'exampl':103 'f':79 'frequent':17 'get':58,94 'got':24 'id':37,61,98 'includ':66 'list':96 'ls':30,77,163 'm':93 'name':51,80 'need':19 'obvious':158 'part':48,68 'past':34 'paus':104,110 'pleas':2 'real':25 'rememb':45 'respons':114,122,130,138 'run':120,128,136,144,150 'show':153 'sick':26 'singl':47 'snikket':84,112 'stand':159 'start/stop/rm':21 'tell':3 'test':15 'use':38 'way':10 'weren':147 'work':156"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701244915
+visibility: "visible "
+apId: "https://lemmy.nz/post/3841751"
+editedAt: null
+createdAt: DateTimeImmutable @1701158515 {#1693
date: 2023-11-28 09:01:55.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1579 …}
+image: null
+parent: null
+root: null
+body: """
I don’t know if this works in `docker` (usually there is 1:1 equivalency between the two), but with `podman` you can do something like:\n
\n
```\n
\n
<span style="color:#323232;">podman stop --filter name=foo\n
</span>\n
```\n
\n
`man podman-stop` tells us:\n
\n
```\n
\n
<span style="color:#323232;"> --filter, -f=filter\n
</span><span style="color:#323232;"> Filter what containers are going to be stopped. Multiple filters can be given with multiple uses of the --filter flag. Filters with the same key work\n
</span><span style="color:#323232;"> inclusive with the only exception being label which is exclusive. Filters with different keys always work exclusive.\n
</span>\n
```
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1701999236 {#1439
date: 2023-12-08 02:33:56.0 +01:00
}
+ip: null
+tags: [
"323232"
]
+mentions: [
"@luthis@lemmy.nz"
]
+children: Doctrine\ORM\PersistentCollection {#1580 …}
+nested: Doctrine\ORM\PersistentCollection {#1583 …}
+votes: Doctrine\ORM\PersistentCollection {#1582 …}
+reports: Doctrine\ORM\PersistentCollection {#1589 …}
+favourites: Doctrine\ORM\PersistentCollection {#1572 …}
+notifications: Doctrine\ORM\PersistentCollection {#1666 …}
-id: 173802
-bodyTs: "'1':13,14 'alway':81 'contain':43 'differ':79 'docker':9 'equival':15 'except':71 'exclus':76,83 'f':39 'filter':29,38,40,41,50,59,61,77 'flag':60 'foo':31 'given':53 'go':45 'inclus':67 'key':65,80 'know':4 'label':73 'like':26 'man':32 'multipl':49,55 'name':30 'podman':21,27,34 'podman-stop':33 'someth':25 'stop':28,35,48 'tell':36 'two':18 'us':37 'use':56 'usual':10 'work':7,66,82"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5647437"
+editedAt: null
+createdAt: DateTimeImmutable @1701184603 {#1435
date: 2023-11-28 16:16:43.0 +01:00
}
+"title": 173802
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_ADMIN
|
null |
|
Show voter details
|
10 |
DENIED
|
ROLE_MODERATOR
|
null |
|
Show voter details
|