rfswift container last
List the containers RF Swift created, most recent first.
rfswift container last lists your RF Swift containers, running and stopped, with their name, status, image and creation time. Use it whenever you want to see which labs you have.
rfswift container lastOther spellings: the legacy form rfswift last still works and prints a notice. See the command tree.
Options
The command takes no options: it always lists every container.
Examples
Basic usage
List all containers
rfswift container lastExample output
CONTAINER ID NAME IMAGE STATUS CREATED PORTS
a1b2c3d4e5f6 sdr_work penthertz/rfswift_resolute:sdr_full Up 2 hours 3 hours ago 0.0.0.0:8080->80/tcp
b2c3d4e5f6g7 bluetooth_1 penthertz/rfswift_resolute:bluetooth Up 1 day 2 days ago
c3d4e5f6g7h8 analysis penthertz/rfswift_resolute:sdr_full Exited 1 week ago Understanding output
| Column | Meaning |
|---|---|
| CONTAINER ID | Short container ID |
| NAME | Container name |
| IMAGE | Image the container was created from |
| STATUS | Running state (Up or Exited) |
| CREATED | When the container was created |
| PORTS | Port bindings, if any |
| Status | Meaning |
|---|---|
Up X minutes/hours/days |
The container is running |
Exited (0) |
The container stopped normally |
Exited (137) |
The container was killed |
Created |
The container was created but never started |
Restarting |
The container is restarting |
Use cases
Quick container check
# Check what containers exist
rfswift container last
# Find specific container
rfswift container last | grep sdr_work
# Count total containers
rfswift container last | tail -n +2 | wc -lClean up old containers
# List containers
rfswift container last
# Identify old unused ones
rfswift container last | grep "Exited"
# Remove specific container
rfswift container rm -c old_containerRelated commands
container create: create a new containercontainer rm: remove a containercontainer stop: stop a running containercontainer shell: enter a containersystem cleanup: remove old containers and images by age
Filtering: the list always includes running and stopped containers (like docker ps -a), with no filter options. Pipe it through grep instead: grep "Up" for running containers, grep "Exited" for stopped ones, or use docker ps for more advanced filters.