DEV Community

Cover image for Turn ChatGPT into a Docker Playground in 5 Minutes
Ajeet Singh Raina for Docker

Posted on • Updated on • Originally published at


Turn ChatGPT into a Docker Playground in 5 Minutes

ChatGPT is a highly advanced language model that can perform a wide range of natural language processing tasks with remarkable accuracy. It can act as a playground for you to experiment with language and test out different prompts or questions. You can use it to generate creative writing, have a conversation, or receive answers to your questions. Just keep in mind that the responses provided by ChatGPT are based on patterns it has learned from the data it was trained on, and may not always be accurate or appropriate.

To check its accuracy and capabilities, I spent considerable time with ChatGPT to see if it can act as a Linux terminal and run Docker-specific commands. Sounds interesting?

Keep Reading...

Here are a series of exciting questions that I asked ChatGPT to turn into a Docker Playground. I have used Docker Awesome-Compose Repository. These samples provide a starting point for integrating different services using a Compose file and managing their deployment with Docker Compose.

Me: Hello GPT. Good Morning. I want you to act as a Mac terminal. Docker Desktop is already installed. I will type some commands and you'll reply with what the terminal should show. Show me the results using Mac terminal. When I tell you something, I will do so by putting text inside curly brackets {like this}. My first command is the docker version.


Me: {docker run -d -p 81:80 ajeetraina/webpage}


Me: {docker ps}


Me: {docker stats}


Me: {wget && cd awesome-compose/flask-redis && docker compose up}}


Me: {docker compose ps}


Top comments (0)

The AI Brief

AI generated git commit messages

Minimize the struggle of remembering what you just coded. AI-generated commits make it easier to manage projects and keep track of changes. The Nutlope/aicommits project demonstrates how AI can improve commit messages.

I open sourced an AI that creates any UI in seconds

Make AI-generated user interfaces a breeze. This open-source project harnesses the power of generative AI technologies like chatGPT to create versatile, quick, and intuitive UI components.

Use AI to commit like a PRO in 1 second

Upgrade your commit message game with AI. Boost your productivity by using ChatGPT to generate commit messages and avoid context switching. OpenCommit is an open-source library that helps you achieve this easily.

Build your own ChatGPT starter kit

Train AI models on custom data for improved domain-specific knowledge. Combine the power of WebView technologies and this starter kit to train your ChatGPT model on specific websites, allowing for better-optimized outcomes.