'Installing Docker: illegal variabloe name
I'm fairly new to the linux environment, and I'm currently trying to install docker according to the instructions posted here: https://docs.docker.com/engine/install/ubuntu/
The issue I run into is with this command
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable nightly test" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
The error that I get is Illegal Variable Name
Any help is greatly appreciated.
EDIT: FIXED. For those who are having trouble the variables in $() need to be determined by the user. Just enter those commands in the terminal, copy the sytax and replace it in the command. For example, for me it was
echo "deb [arch=amd64 ..."
Solution 1:[1]
Put the entire block of code in a while(true) (or with whatever condition you want but in this case while true will be fine) loop that should fix it
(keep in mind you can have a delay outside of the loop preceding the loop itself but not after)
(You dont really need an IEneumerator for this you could just have an Update function and if thats not your taste just a void being called by an Update function)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | JESTA |
