Skip to main content
added 94 characters in body
Source Link
Brad Parks
  • 1.8k
  • 3
  • 22
  • 41

You can easily test against any version of bash in a docker container.

You can start up a docker container running bash 3.2 like so:

$ docker run -it bash:3.2 

You can mount a folder in the docker, so you can easily test scripts from your machine in the docker container. The following would allow the folder /Users/myuser to be available in the docker container at /myuser

$ docker run -v /Users/myuser/:/myuser -it bash:3.2 

Note, you can use any bash version that's listed here:

https://hub.docker.com/_/bash

and the source for these images can be found here:

https://github.com/tianon/docker-bash/

You can easily test against any version of bash in a docker container.

You can start up a docker container running bash 3.2 like so:

$ docker run -it bash:3.2 

You can mount a folder in the docker, so you can easily test scripts from your machine in the docker container. The following would allow the folder /Users/myuser to be available in the docker container at /myuser

$ docker run -v /Users/myuser/:/myuser -it bash:3.2 

Note, you can use any bash version that's listed here:

https://hub.docker.com/_/bash

You can easily test against any version of bash in a docker container.

You can start up a docker container running bash 3.2 like so:

$ docker run -it bash:3.2 

You can mount a folder in the docker, so you can easily test scripts from your machine in the docker container. The following would allow the folder /Users/myuser to be available in the docker container at /myuser

$ docker run -v /Users/myuser/:/myuser -it bash:3.2 

Note, you can use any bash version that's listed here:

https://hub.docker.com/_/bash

and the source for these images can be found here:

https://github.com/tianon/docker-bash/

Source Link
Brad Parks
  • 1.8k
  • 3
  • 22
  • 41

You can easily test against any version of bash in a docker container.

You can start up a docker container running bash 3.2 like so:

$ docker run -it bash:3.2 

You can mount a folder in the docker, so you can easily test scripts from your machine in the docker container. The following would allow the folder /Users/myuser to be available in the docker container at /myuser

$ docker run -v /Users/myuser/:/myuser -it bash:3.2 

Note, you can use any bash version that's listed here:

https://hub.docker.com/_/bash