The historical parts of Naples are within walking distance of the port. Naples port is perfectly placed for visiting Pompeii and you can walk off the ship to the city of Naples.  

Naples (port)