Docker CLI on Windows: config.json path? - configuration

According to https://docs.docker.com/engine/reference/commandline/registry_history/ , some experimental features of the Docker CLI can be enabled by editing the config.json file.
But, on Windows, where is the config.json file located?

Finally, I found the config.json file in:
C:\Users\<username>\.docker

Related

How to start compile SCSS to CSS on PhpStorm for example with File Watcher

I have start using SCSS for the frontend, and can setup it correctly with PhpStorm on the a MacBook Pro with Mojave installed.
First I install the npm:
Then I setup the file watcher:
But it does not work. Something what I not seeing here?
If you like the .css files to be generated in the same folder as original file, try the following settings:
Note the Create output file from stdout option - it has to be enabled, as node-sass writes CSS to stdout unless the -o option is passed.
If you like to place generated files in a separate folder, use the -o option:

az webapp deployment source config choose solution file

I am trying to deploy an app using the following:
az webapp deployment source config --branch master --manual-integration --name myapp --repo-url https://$GITUSERNAME:$GITUSERPASSWORD#dev.azure.com/<Company>/Project/_git/<repo> --resource-group my-windows-resources --repository-type git
The git repo contains 2 .sln solution files and this causes an error when attempting to deploy. Is there any way I can specify which solution file to use? I can seem to find a way in the docs but wondered if there might be a workaround.
I found a solution where you create a .deployment file in the root of the solution with these contents
[config]
project = <PATHTOPROJECT>
command = deploy.cmd
Then a deploy.cmd
nuget.exe restore "<PATHTOSOLUTION>" -MSBuildPath "%MSBUILD_15_DIR%"
The -MSBuildPath may be optional for you

Access file from chrome node docker

I am using selenium grid docker to run my automation testsuites.
I hv configured chrome node docker to run my testcases on the browser.
In my testcases I am downloading some file from the web. It is getting downloaded in "/home/seluser/Downloads/". I need the content of the file as the content is dynamic. How I can access file downloaded on the docker image from machine where my automation is running.
One way to do this would be to mount the /home/seluser/Downloads path somewhere on your host machine. Change your docker run command to add something like -v /path/on/host:/home/seluser/Downloads and all of the saved files will be accessible on your host machine.
You can use docker cp command
docker cp <name of the container>:/home/seluser/Downloads copied_files
where copied_files is a directory where files will be copied

how do i create an html file in document root and after that open it in my browser

How do I find DocumentRoot directory in CentOS and then create an HTML file into that directory? How to open that file through my browser?
First you have to install web server in your system.
Default DocumentRoot Directory is /var/www/html for apache web server.
So if you have installed apache web server then you need to create html file in /var/www/html/ directory using any editor like vi/nano.
If you don't have any domain then you can access that file in browser using that server ip.
http://x.x.x.x/index.html
if that is your local system then you can access it using
http://localhost/index.html
To Find Apache DocumentRoot in CentoS system use grep command as follow:
grep -i 'DocumentRoot' /etc/httpd/conf/httpd.conf
sample output should be :
DocumentRoot: The directory out of which you will serve your
DocumentRoot "/var/www/html"
access content that does not live under the DocumentRoot.
Then go to that directory (For example /var/www/html) by typing:
cd /var/www/html
Then create html file inside it with name index.html as following:
vi index.html
type simple words like (Hello world) then save and exit the file
Finally, To Open that file through your browser (firefox) type the next command and hit enter:
firefox file:///var/www/html/index.html

OpenShift: How to upload a directory?

I am using OpenShift with Tomcat 7. I am trying to scp a directory into webapps. I search online and the recursion option is -r. However, when I type rhc help scp, the -r option is
-r, --remote-path file_path Remote filesystem path
So is there a recursion option for scp in OpenShift? How can I upload a directory in OpenShift?
Any help would be much appreciated. Thank you.
scp localfile gearnumber#myapp.rhcloud.com:app-root/data
scp localdir -r gearnumber#myapp.rhcloud.com:app-root/data
The only directory where your user has write permission is app-root/data, you can reference it from your code with the environment variable OPENSHIFT_DATA_DIR