Project

General

Profile

How to run KSH script in Docker?

Added by jyoti lodha about 5 years ago

Hello
I am not able to run KSH script in my dcoker.

me@df9fb7779200:~$ ksh /ankit/TASMAXMPI.ksh
-su: ksh: command not found
me@df9fb7779200:~$ apt-get update && apt-get install ksh
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
me@df9fb7779200:~$ apt-get update
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/

How Can i Run my ksh script in Docker as ksh is not able to install . IS there is any other way.

My version:
me@df9fb7779200:~$ cdo -V
Climate Data Operators version 1.9.3 (http://mpimet.mpg.de/cdo)
Compiled: by unknown on 63b2d8ab9116 (x86_64-unknown-linux-gnu) Feb 14 2018 17:31:19
CXX Compiler: g++ -fPIC -DPIC -g -O2 -std=c++11 -fopenmp -fPIC -DPIC -fopenmp
CXX version : g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
C Compiler: gcc -std=gnu99 -fPIC -DPIC -fopenmp
C version : gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
F77 Compiler:
F77 version : ./configure: line 21772: -V: command not found
Features: 6GB C++11 DATA PTHREADS OpenMP3 HDF5 NC4/HDF5/threadsafe OPeNDAP UDUNITS2 PROJ.4 XML2 CURL FFTW3 SSE2
Libraries: HDF5/1.10.1 proj/4.93 xml2/2.9.7 curl/7.59.0(h7.55.1)
Filetypes: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5
CDI library version : 1.9.3 of Feb 14 2018 17:29:20
CGRIBEX library version : 1.9.0 of Jan 22 2018 09:24:03
GRIB_API library version : 2.7.0
NetCDF library version : 4.4.1.1 of Nov 8 2017 13:32:10 $
HDF5 library version : 1.10.1 threadsafe
EXSE library version : 1.4.0 of Feb 14 2018 17:29:14
FILE library version : 1.8.3 of Feb 14 2018 17:29:12

Please help me hoe to solve this issue.
Waiting for a positive reply.


Replies (2)

RE: How to run KSH script in Docker? - Added by Karin Meier-Fleischer about 5 years ago

This is not a CDO related question!
It seems that you don't have the permission to install ksh with apt-get. If you have admin permission than try to use 'sudo apt-get install ksh' or ask your system administrator.

-Karin

RE: How to run KSH script in Docker? - Added by Ralf Mueller about 5 years ago

hi!

how can anyone know anything about a docker image you use? I am not a wizard or the NSA, sorry ;-)

cheers
ralf

    (1-2/2)