Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

run shell script in dockerfile

FROM php:7-fpm    
ADD bootstrap.sh /
RUN bash -c "/bootstrap.sh"
Comment

run shell script in docker build

#!/bin/bash
set -x
while $1
do
    echo "Press [CTRL+C] to stop.."
    sleep 5
    echo "My second and third argument is $2 & $3"
done
Comment

how to execute docker command in shell script

echo -n "enter type compose command ? "
read type

[[ "$type" ]] && docker-compose $type;
Comment

PREVIOUS NEXT
Code Example
Shell :: uninstall plesk ubuntu 
Shell :: How to change default user in WSL Ubuntu bash on Windows 10 
Shell :: git no ssl verify 
Shell :: get size of file linux 
Shell :: git change commit 
Shell :: flutter ci cd gitlab 
Shell :: ubuntu move folder to another directory 
Shell :: is lubuntu better than ubuntu 
Shell :: angular add component 
Shell :: turn off screen linux 
Shell :: count number of lines in directory linux 
Shell :: check ram in linux 
Shell :: leap year bash shell 
Shell :: change permissions on all sub-directories 
Shell :: git remove deleted remote branches 
Shell :: rot13 in bash 
Shell :: install google drive on ubuntu 
Shell :: / bin/sh: 1: bc: not found 
Shell :: installing webpack-cli 
Shell :: gitlab reset password 
Shell :: how to upgrade docker-compose version 
Shell :: download unity for linux 
Shell :: video converter for ubuntu 
Shell :: check time in linux 
Shell :: git reset hard to remote 
Shell :: how to install armitage in kali linux 
Shell :: where is wsl folder in windows 
Shell :: how to return latest version in github 
Shell :: shell command read first lines 
Shell :: Not Found - GET https://registry.npmjs.org/boostrap-vue - Not found 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =