Replies: 5 comments 1 reply
-
You're right, there are several steps to using Docker on Windows. In general, you don't need to run both Docker and a virtual environment. One or the other is usually enough. Many AutoGen examples will run on Windows directly without WSL/linux. Which example are you trying to run? |
Beta Was this translation helpful? Give feedback.
-
Hi Ricky,
I am running the agents which requires web info.
The example code for Google Colab had docker in it.
So I installed the Docker desktop for Windows, which also automatically installed WSL to my programs and files.
In Vscode, I also pip installed pyautogen and docker inside the virtual environment.
My understanding standing is that the Autogen code will automatically use docker if available without the need to configure the docker. In my case, I just made sure the docker is running from the system tray.
So back to your point that you generally don’t need virtual environment and docker at the same time. What I did is not necessary then? I created a virtual environment in VScode with Python venv command. I also pip installed Docker in that virtual environment.
Thanks for your help!
Nhtkid
…________________________________
From: Ricky Loynd ***@***.***>
Sent: Monday, October 30, 2023 1:11:02 AM
To: microsoft/autogen ***@***.***>
Cc: nhtkid ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/autogen] Run Autogen with Docker (Discussion #469)
You're right, there are several steps to using Docker on Windows. In general, you don't need to run both Docker and a virtual environment. One or the other is usually enough. Many AutoGen examples will run on Windows directly without WSL/linux. Which example are you trying to run?
—
Reply to this email directly, view it on GitHub<#469 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFWDKROIPSAD7GM4EX265DYBZPXNAVCNFSM6AAAAAA6USYW2WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMJVHE4TM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok, have you tried the basic installation steps and sample code on the main readme page? It should work on windows, WSL, or linux. Which os do you prefer to use? |
Beta Was this translation helpful? Give feedback.
-
Oh yeah.
Rickey I was just copying the exact code example to VSCode on Windows.
Sent from Outlook<http://aka.ms/weboutlook>
…________________________________
From: Ricky Loynd ***@***.***>
Sent: Wednesday, November 1, 2023 1:12 AM
To: microsoft/autogen ***@***.***>
Cc: nhtkid ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/autogen] Run Autogen with Docker (Discussion #469)
Ok, have you tried the basic installation steps and sample code on the main readme page? It should work on windows, WSL, or linux. Which os do you prefer to use?
—
Reply to this email directly, view it on GitHub<#469 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AWFWDKXEEWLBSAAFBHFUCITYCEBNNAVCNFSM6AAAAAA6USYW2WVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TIMZVHAZDG>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@nhtkid modern Windows has a built in (but off-by-default) "Sandbox" feature. If you're trying to maintain a pristine environment when trying software out. It's like a gui-capable docker container that's a clone of the OS you're running. if you're not docker familiar, it's a lot easier way to do these things. win+i -> optional features -> More windowsfeatures -> Windows Sandbox |
Beta Was this translation helpful? Give feedback.
-
Dear community,
I have never used Docker previously. Is there any guide how to run Autogen in Docker in VSCode on Windows?
The example code seems quite simple, which just need to pip install Docker and it will be automatically used. If docker is not present, the code will fall back not to use docker.
But in reality, it looks quite complicated to me. I need to install Docker desktop, get the Linux image, set up WSL for Windows, etc. By the time I get to VSCode, do I still need to create a virtual environment and then activate a Docker container? Or do I activate a Docker first, then create another virtual environment inside?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions