Sunday, February 8, 2026

Docker run for mac

 docker run -d -p 10000:3000 -p 11000:4000  --name ub-react -v "/Users/atharvachandras/Desktop/rajesh/DockerVolumes/React:/rajesh" ubuntu:latest tail -F /dev/null


you have to use /Users/username/Desktop as base path

/Users/username has to be used, and it is always better to use /Desktop so that it is immediately visible ( otherwise everytime you have to use search option) 


docker run -d -p 10001:3001 -p 11001:4001  --name ub-python -v "/Users/atharvachandras/Desktop/rajesh/DockerVolumes/Python:/rajesh" ubuntu:latest tail -F /dev/null



docker exec -it ub-react bash

apt-get update 

apt-get install git

apt-get install vim


/* do NOT directly run following commands, they will get older versions */

apt-get install nodejs

apt-get install npm


/* instead use following commands  */

apt-get install -y curl

apt-get install sudo

curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -

sudo apt-get install -y nodejs




nodejs -v 

npm -v 


as of 08feb2026 : 24.13.0 and 11.6.2

No comments:

Post a Comment

rls

To enable row-level security (RLS) in MS SQL Server (2016 and later) , you need to define a security policy that uses a user-defined, inli...