Created
          March 18, 2019 00:04 
        
      - 
      
- 
        Save rms1000watt/1f3593bd3d4d31c9f4dfac30830d48f2 to your computer and use it in GitHub Desktop. 
    Add busybox (shell) into from scratch container as volume mount for temporary shell
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env bash | |
| if [[ ! -d "busybox" ]]; then | |
| curl -o busybox.tar.xz -L https://github.com/docker-library/busybox/blob/82bc0333a9ae148fbb4246bcbff1487b3fc0c510/uclibc/busybox.tar.xz?raw=true | |
| mkdir busybox | |
| tar -zxvf busybox.tar.xz -C busybox | |
| rm busybox.tar.xz | |
| fi | |
| docker run -it --rm --entrypoint sh -v $(pwd)/busybox/bin:/bin hello-world | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment