docker interact with running container
docker exec -itbash
Here is what the above code is Doing:
1. Create a new container from the image
2. Run the container
3. Attach the container to the terminal
4. Run bash inside the container
docker exec -itbash
Here is what the above code is Doing:
1. Create a new container from the image
2. Run the container
3. Attach the container to the terminal
4. Run bash inside the container
$ sudo poweroff or $ sudo shutdown -h now Here is what the above code is Doing: 1. We import the GPIO library and the time library. 2. We set the mode of the GPIO pins to BCM. 3. We set the GPIO pin that we’re using to output mode. 4. We set the GPIO…
git pull origin Here is what the above code is Doing: 1. git init 2. git add . 3. git commit -m “Initial commit” 4. git remote add origin 5. git remote -v 6. git push origin master
saml2aws login –force Here is what the above code is Doing: 1. It’s using the saml2aws command to login to AWS using the saml2aws profile. 2. It’s using the –force flag to force the login.
Net stop com.docker.service Net start com.docker.service Here is what the above code is Doing: 1. It’s creating a new Docker client object. 2. It’s creating a new Docker container object. 3. It’s starting the container. 4. It’s waiting for the container to finish. 5. It’s printing the container’s logs. 6. It’s stopping the container.
cd /var/www/html/ find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} + find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} + chown -R :www-data . # Ubuntu chmod u+x bin/magento php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento indexer:reindex php bin/magento c:f…
wget -qO – https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add – echo “deb https://download.sublimetext.com/ apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list sudo apt update && sudo apt install sublime-text Here is what the above code is Doing: 1. Add the GPG key for the official Docker repository to the system 2. Add the Docker repository to APT sources 3….