STORY
Sai Prasad is a talented python developer. Maybe you two can link up here? I love docker.
Like
Award Contribution
Have you found other team members that are great python developers?
Thank you for the responses. 😉
Anyone experienced in developing Docker Applications is of great help!
Like
Award Contribution
I have the Client and server code in python.
I tried to build and run the containers.
Though they are building images successfully there is an error popping out.
#server code
#!/usr/bin/python
import socket
s = socket.socket()
host = socket.gethostname()
port = 12345
s.bind((host, port))
s.listen(5)
while True:
c, addr = s.accept()
print ‘Got connection from’, addr
c.send(‘Thank you for connecting’)
c.close()
#client code
#!/usr/bin/python
import socket
s = socket.socket()
host = socket.gethostname()
port = 12345
s.connect((host, port))
print s.recv(1024)
s.close
#docker file
FROM python:2-onbuild
CMD [“python”,"./server.py"]
Check the error occurring at the client terminal
Rahul can you briefly explain what are you trying to build or achieve??
We are trying to build a ‘multi-client’ -Server application in Python and run it using docker containers.
Leave a reply...
DISCOVER
HIRE
ACTIVITY
FEED