docker image for editing C code and using GDB instead of lldb in MacOS, my daily driver.
164
==========================
Use the alias c473 to quickly navigate to your project directory:
c473
List all Docker containers to see which ones are running or stopped:
dps
Ensure you have the latest image by pulling it from Docker Hub:
dpull
Start or attach to the goofy_lumiere container using the drun function:
drun
Once inside the container, you can compile your code using the comp alias:
comp
If you've made changes and want to save them as a new image:
dcommit <container_id> udogg/gdb-container:v1
Push the committed image to Docker Hub:
dpush udogg/gdb-container:v1
After pushing, remove the local image to save disk space:
drmi udogg/gdb-container:v1
Streamline the commit, push, and remove process into one step:
dpr <container_id> udogg/gdb-container:v1
If you need to run a container temporarily, use the drun_rm alias:
drun_rm
To exit the container, simply type:
exit
or press Ctrl + D.
For more details, visit the Docker Documentation.
For linux, it is mostly the same as macos because macos is unix based just edit ~/.bashrc instead of ~/.zshrc
Content type
Image
Digest
sha256:e5942d0fc…
Size
1.3 GB
Last updated
over 1 year ago
docker pull udogg/gdb-container:v1