a simple bash script to automatically start the docker daemon
- Navigate to the folder containing your script using the
cd
command. For example:cd /path/to/autoStartDocker
- Make the script executable by running:
chmod +x start_docker.sh
- Run the script by using:
./start_docker.sh
Note: If the script is in your current directory, use
./
before the script name to specify the current path.
- example:
docker ps
- example:
docker stop
- example:
docker restart
- example:
docker info
- example:
docker --version
- example:
docker version