School of Physics, Mathematics, and Computing 
Not logged in (login)

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!" followup message.

How do I ask a good question?
RSS cloud
Jump to:

lab 1

1 of 1097 articles shown, currently no other people reading this forum.
From: Christopher M.
Date: Sat 7th Aug 2021, 6:35am

"Malcolm Muller" <23*1*9*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> My windows 10 docker (WSL2) doesn't have a "fileSharing" option in the dockersDesktop > Settings > resources 
> dialog (see 1st screenshot). also, "wget" 
> in the docker terminal  results in an error (2nd screenshot)

That missing 'fileSharing' option in the Dashboard may only be required/exist on macOS,  perhaps needed to politely 
interface with macOS's   System Preferences > Sharing > File Sharing  dialogue.
There may be a functionally equivalent mechanism on Windows, or it may not be required at all. ??

> I'm not sure if this is related or not, but I also noticed that each time I type "exit" in the docker linux 
> shell command interface (and return to the windows command prompt), when i return to the linux command via 
> the "run -it --rm --name myubuntu myubuntu bash" command, everything disappears (e.g. the bash_profile file, 
> the entire "CITS2002" directory, all the new user "whoops!" files, etc.). Why does this happen? Is there some 
> way to use the docker linux command instance but not lose all my files every time we exit the docker linux 
> command mode?  Barring that, is it possibly better to just use the "right click -> open linux shell here" 
> option to gain access to linux command window that we should be using to start on the lab work and 
> potentially the rest of the projects for the semester?

Not strictly related but, agreed, you don't wish to lose your working environment each time you exit a container.
Keep your working files for labs and projects within your Windows file system (not within the docker container, which 
will throw them away on exit, unless a new image is created).

My reading of StackOverFlow indicates that this is the same from Windows and macOS, just needing to specify the correct 
path to your Windows files:

Related articles

lab 1 (all 12) RSS
├─ original   Wed 4th Aug 2021, 8:55pm, ANONYMOUS
├─ reply 1   Thu 5th Aug 2021, 5:45am, Christopher M.
├─ reply 2   Thu 5th Aug 2021, 10:47am, ANONYMOUS  O.P.
├─ reply 3   Thu 5th Aug 2021, 2:53pm, Christopher M.
├─ reply 4   Thu 5th Aug 2021, 8:48pm, Amitava D.
├─ reply 5   Fri 6th Aug 2021, 10:55am, ANONYMOUS  O.P.
├─ reply 6   Fri 6th Aug 2021, 1:15pm, ANONYMOUS
├─ reply 7   Fri 6th Aug 2021, 2:46pm, Christopher M.
├─ reply 8   Fri 6th Aug 2021, 2:48pm, Christopher M.
├─ reply 9   Fri 6th Aug 2021, 11:20pm, Malcolm M.
├─ reply 10   Fri 6th Aug 2021, 11:22pm, Malcolm M.
└─ THIS   Sat 7th Aug 2021, 6:35am, Christopher M.
This Page

Program written by: [email protected]
Feedback welcome
Last modified:  8:37am Nov 14 2021